$input = str_ireplace('http://http://', 'http://', $input); // used as a precaution since the user might enter the HTTP protocol in the prompt
I noticed the other day that if a newline is in with the BBCode for the ul or li tags, that the formatting is messed up when it eventually prints on the web page as HTML. Does anyone know of a good way to combat this?
**EDIT: Yes, I know that it's case insensitive and needs a little bit of work. I've been meaning to edit the file.
Last edited by Joseph Witchard; 01-12-2010 at 10:24 PM.
how is the formatting messed up? does it put it outside a li or ul tag? or is it just outputting ugly? Could you post a screenshot? or a link to a page where we can see it? I'm a visual person that'd help some of us help you.