View Single Post
Old 10-23-2003, 10:52 PM   #1
uruloki
Green Mole
 
Join Date: Sep 2003
Posts: 6
Question Problems with html coments <!-- -->

When I index pages with html coments like

<!-- #begintemplate="algo" -->

the spider replace it with

< begintemplate algo >

and this is a problem because I have coments with paths to conexion entries for my DataBases
The regular expressions in robot functions that match with that kind of sentences is as it appears:

//f..k <!SOMETHING tags !!
$text = eregi_replace('(<)!([^-])','\1\2',$text);

Sorry for my english, thanks for suggestions.

BYE

<!-- #begintemplate="algo" -->
uruloki is offline   Reply With Quote