Menu
Hi,
I have a script that replaces html tags with BB code, however I am getting a problem when doing the <li> tags.
if I do this, the code works:
[code=php]$bb_map = array(“<li>” => ‘[LI]’);
$string = str_replace(array_keys($bb_map), $bb_map, $string);
However if I do this the code does not work:
[code=php]$bb_map = array(“</p><li>” => ‘[LI]’);
$string = str_replace(array_keys($bb_map), $bb_map, $string);
Any ideas
Thanks in advance,
Ben