hi freaks,
still working on my email bot.
im currently trying to escape <>-tags to be displayed- but not the browser wont exectute it (i.e. xls-tags) i want them as chars.
so whin my
$content is like <xsl:stylesheet> <xsl:template match="/"> <more xls...> it shows a stylesheet.
i just want the chars.
Here is what ive been trying so far: but its bad
<?php
$string='<tag> > < asdasf';
$bomb=array(
'<',
'>',
);
$defusal=array(
'-',
'!',
);
$string= preg_replace($bomb,$defusal,$string);
echo $string;
?>
error:
Warning: preg_replace() [function.preg-replace]: No ending matching delimiter '>' found in C:\xampp1\htdocs\code.php on line 13
donno any further now