Explorar o código

Ticket #4486 - Remove empty tags from html content.

AntonLV %!s(int64=3) %!d(string=hai) anos
pai
achega
4cfb716c75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      inc/utils.inc.php

+ 1 - 1
inc/utils.inc.php

@@ -236,7 +236,7 @@ function bx_process_output ($mixedData, $iDataType = BX_DATA_TEXT, $mixedParams
         $s = bx_linkify_html($mixedData, 'class="' . BX_DOL_LINK_CLASS . '"');
 
         // remove empty tags from html content #4203 and #4486
-        $s = preg_replace("/(((<[^\/(br)>][^>]*>)+[ \n(<br\s*\/*>)]*(<\/[^>]+>)+)+)|<br>/", '', $s);    
+        $s = preg_replace("/(((<[^\/(br)>]*>)+[ \n(<br\s*\/*>)]*(<\/[^>]+>)+)+)|<br>/", '', $s);    
         return $mixedParams && is_array($mixedParams) && in_array('no_process_macro', $mixedParams) ? $s : bx_process_macros($s);
     case BX_DATA_TEXT_MULTILINE:
         $s = $mixedData;