I have an html [sample.html] like this:
some content
How do i get the content part that is between the 2 html comment ''
using php? I want to get that, do some processing and place it back, so i have to get and put! Is it possible?
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: