This is a simple one 🙂
I have this line which works great:
$listing['biz_description'] = preg_replace('/<!--.*?--\>/','',$listing['biz_description']);
What is the proper regex to remove the html entity version?
This is the entities:
<!-- -->
I would just decode the html entities if you are happy with the preg_replace regex you already have… html_entity_decode As @ircmaxell mentioned, using regex for html parsing can be very painfull.