Hello!
I am using following code to preg match text between <p> and </p> tags. But can somebody tell me why isn't preg_match working?
<?php
$code = "
<div>
<p>
some text....
</p>
</div>";
preg_match("/<p>(.*?)<\\/p>/", $code, $parsed);
echo $parsed[1];
?>