/// 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>');
}
//Extract <a>..><a> tags from definition
- preg_match_all('/<a[^>]+?>(.*?)<\/a>/is',$definition,$list_of_a);
+ preg_match_all('/<a\s[^>]+?>(.*?)<\/a>/is',$definition,$list_of_a);
//Save them into links array to use them later
foreach (array_unique($list_of_a[0]) as $key=>$value) {