php - parse html page

siyah.kin

New Member
\[code\]<div>divbox</div><p>para1</p><p>para2</p><p>para3</p><table class="table"><tr><td></td></tr></table><p>para4</p><p>para5</p>\[/code\]could someone please tell me how i can parse this html page to display ONLY para1, para2 and para3? and remove everything else.condition:
i want to fetch all the content from the first \[code\]<p>\[/code\] to the first \[code\]<table class="table">\[/code\].(the first table will always have the class "table")output:\[code\]<p>para1</p><p>para2</p><p>para3</p>\[/code\]
 
Back
Top