[habari commit] r752 - trunk/htdocs/system/classes

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 16, 2007, 11:26:01 PM8/16/07
to habar...@googlegroups.com
Author: epithet
Date: Thu Aug 16 19:14:55 2007
New Revision: 752

Modified:
trunk/htdocs/system/classes/format.php

Log:
Remove del and ins from block tags in autop(). Issue #365, thanks, geoffers.

Modified: trunk/htdocs/system/classes/format.php
==============================================================================
--- trunk/htdocs/system/classes/format.php (original)
+++ trunk/htdocs/system/classes/format.php Thu Aug 16 19:14:55 2007
@@ -108,7 +108,7 @@
**/
public function autop($value)
{
- $regex = '/(<\\s*(address|blockquote|del|div|h[1-6]|hr|ins|p|pre|ul|ol|dl|table)[^>]*?'.'>.*?<\\s*\/\\s*\\2\\s*>)/sm';
+ $regex = '/(<\\s*(address|blockquote|div|h[1-6]|hr|p|pre|ul|ol|dl|table)[^>]*?'.'>.*?<\\s*\/\\s*\\2\\s*>)/sm';
$target = str_replace("\r\n", "\n", $value);
$target = preg_replace('/<\\s*br\\s*\/\\s*>(\s*)/m', "\n", $target);

Reply all
Reply to author
Forward
0 new messages