Fix A tag regex searching. MDL-15842 ; merged from 19_STABLE
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc
|
||||
/// Unless specified otherwise, we will not replace within <a></a> tags
|
||||
if ( $ignoretagsopen === NULL ) {
|
||||
//$ignoretagsopen = array('<a(.+?)>');
|
||||
$ignoretagsopen = array('<a[^>]+?>');
|
||||
$ignoretagsopen = array('<a\s[^>]+?>');
|
||||
$ignoretagsclose = array('</a>');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user