Hello! I write some easy parser for my page and have some problem with it.
HTML text:
<p>some text</p><p>another text</p>
If I try use something like:
preg_split("#<p>#",$string);
I have a result without <p>
, and this is very very bad. (only </p>
exist)
Maybe I can split this string to array, but don't remove </p>
?