[SOLVED]nl2br anything ouside [php] or [code]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

do the nl2br first. in the highlighter, before passing it through the highlighting function itself, pre process out the nl2br'd content.. process the highlighting as usual.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

I tried that before, but without success, after I tried it again, it seems to work!
must be something i forgot before.
Thanks feyd, you really helped me there :D

also, if anyone's intrested in the highlighter, i'll post the code ;)
Post Reply