Why is this format replacement needed?
-
Hi,
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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.