Quantcast
Viewing all articles
Browse latest Browse all 24

Comment on "Post: Extract HTML with PHP’s DOM extension (en)" by SteveST

Nicolas! Ta for the handy pointers here, but you forgot to take account of self-closing tags! Just putting your three tag-closing lines inside a wee regex conditional seems to sort it out, though. :-)

Viewing all articles
Browse latest Browse all 24

Trending Articles