Yeah, your right....I wasn't coding this properly anyway. The way I perform the other replacements is like this:
eg.
/ Bold /
$newtext = str_replace('', '<b>', $newtext);
$newtext = str_replace('', '</b>', $newtext);
I came to the conclusion that I should ry something like this for the list tags:
/ Numbered List/
$newtext = str_replace('[/NUMBER][NUMBER]', '</li><li>', $newtext);
$newtext = str_replace('[/NUMBER] [NUMBER]', '</li><li>', $newtext);
$newtext = str_replace('[/NUMBER]\n[NUMBER]', '</li><li>', $newtext);
$newtext = str_replace('[NUMBER]', '<ol type=1><li>', $newtext);
$newtext = str_replace('[/NUMBER]', '</li></ol>', $newtext);
I perform the first three lines as I am trying to allow for spaces or a line break. Based on the other tags this should work. However it still cannot find the desired tags. Does anybody have an idea if there is a function that ignores whitespace.
HELP!