need matched 2 string and add < p > tag after matched string, for example;
$string1="<p>he adventures <p>
<p>of < span >adolescence< /span > had taught Piet < span >Barol< /span > that he</p>";
$matching_with_string="he adventures
of adolescence had
taught Piet Barol
that he";
i need string 1 output will be remain same with all include of HTML tags.