Topic: Can't validate the following bbcode
Can someone please tell me why this would not validate:
<a id="furl" class="tool_btn" title=<?php echo '"'.$lang_modern_bbcode['FURL title'].'"' ?> href="javascript:insert_text('[url=http://fill in the blank]','Page Title[/url]')"><?php echo $lang_modern_bbcode['FURL'] ?></a>I get the following:
line 248 column 8 - Warning: <a> escaping malformed URI reference
This is what I have in my parser.php file:
// Do the more complex BBCodes (also strip excessive whitespace and useless quotes)
$a = array( '#\[url=("|\'|)(.*?)\\1\]\s*#i',
'#\[url\]\s*#i',
'#\s*\[/url\]#i',
'#\[email=("|\'|)(.*?)\\1\]\s*#i',
'#\[email\]\s*#i',
'#\s*\[/email\]#i',
'#\[img\]\s*(.*?)\s*\[/img\]#is',
'#\[colou?r=("|\'|)(.*?)\\1\](.*?)\[/colou?r\]#is');
$b = array( '[url=$2]',
'[url]',
'[/url]',
'[email=$2]',
'[email]',
'[/email]',
'[img]$1[/img]',
'[color=$2]$3[/color]');Thanks
Shedrock