<div class="item itemask" ><div class="tophead"><div class="itemnumber"></div><a class="article" href=""></a> </div><div class="bottomhead"> points by <a class="userlink" rel=""></a> ago <a href="http://news.ycombinator.com/item?id=">discuss</a></div></div>
How can PHP remove all instances of the above snippet in a page without requiring escaping the above string. Or, how can I easily get the escape-string of the above in order to plug into a preg_replace to remove it.
I need to run PHP on the server against a bunch of htm files. It must be done on the server-side in one operation.
Aucun commentaire:
Enregistrer un commentaire