megamanXplosion
09-04-2002, 06:46 PM
I have a message board (invision board) and I've edited the post_parser.php file to let someone use and to enter a javascript statement to execute (not show, execute). However....
The message board automatically inserts <br> in the place of line breaks, using this code....
$txt = preg_replace( "/<br>|<br\s*\/>/", "\n", $txt );
Is there anyway to make that conditional? As in, it'll replace line breaks with <br>, but if it's between and it won't?
The message board automatically inserts <br> in the place of line breaks, using this code....
$txt = preg_replace( "/<br>|<br\s*\/>/", "\n", $txt );
Is there anyway to make that conditional? As in, it'll replace line breaks with <br>, but if it's between and it won't?