Php get html tag content
I have an html (sample.html) like this:
How do i get the content part that is between the 2 html comment
Gordon 307k72 gold badges526 silver badges551 bronze badges asked Aug 4, 2010 at 10:00
1 esafwan - you could use a regex expression to extract the content between the div (of a certain id). I've done this for image tags before, so the same rules apply. i'll look out the code and update the message in a bit. [update] try this:
or more simply:
|