diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-01-08 19:33:21 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-01-08 19:33:21 -0500 |
commit | c4b49227819624b14b61e6eedbfa6779cd794d45 (patch) | |
tree | b198cff1151656ab4d8c4ef649e7b8e1bc5e5469 /engine/lib/output.php | |
parent | b2bcd510b040b6d065a3a6ad5a4ea36e43db0446 (diff) | |
download | elgg-c4b49227819624b14b61e6eedbfa6779cd794d45.tar.gz elgg-c4b49227819624b14b61e6eedbfa6779cd794d45.tar.bz2 |
most of the comments in the engine now past the sniffer
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r-- | engine/lib/output.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php index 6554481f5..65f51f854 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -81,10 +81,10 @@ function autop($pee, $br = 1) { } $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee); $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee); -// if (strpos($pee, '<pre') !== false) { -// mind the space between the ? and >. Only there because of the comment. -// $pee = preg_replace_callback('!(<pre.*? >)(.*?)</pre>!is', 'clean_pre', $pee ); -// } + //if (strpos($pee, '<pre') !== false) { + // mind the space between the ? and >. Only there because of the comment. + // $pee = preg_replace_callback('!(<pre.*? >)(.*?)</pre>!is', 'clean_pre', $pee ); + //} $pee = preg_replace( "|\n</p>$|", '</p>', $pee ); return $pee; |