Updating the Question:
$li_text = $li->plaintext;
echo '<br>'.$li_text;
echo '<br>'.$li_text = preg_replace('/\:(.*?)\>/',':', $li_text);
$li getting the Value "Qualification : School & Graduation > BE / B.Tech ( Engineering ) " //by using simple html DOM parsing from other websites
The output i am getting is
Qualification : School & Graduation > BE / B.Tech ( Engineering )
Qualification : School & Graduation > BE / B.Tech ( Engineering )
If i assign $li_text = "Qualification : School & Graduation > BE / B.Tech ( Engineering )" then the REGEX is working fine.
preg_replaceback into$str? (Had to ask; sometimes it's the simple things)