Why is this format replacement needed?
I have some trouble with code posted without using backticks (i’m using a Geshi syntax plugin)
I noticed that the function “bb_autop” inside the file “functions.bb-formatting.php” adds new line characters before and after each html open/close tag (ul, li…). Responsible for this modification are these two rows:
$pee = preg_replace('!(<(?:ul|ol|li|blockquote|pre|p)[^>]*>)!', "n$1", $pee);
$pee = preg_replace('!(</(?:ul|ol|li|blockquote|pre|p)>)!', "$1n", $pee);
why is this replacement done?
You must be logged in to reply to this topic.