CJavaScript generates not valid XHTML code (quote function)

jQuery('img#yw0').after("<a href="#" id="yt0">Get a new code</a>");

(HTML Validator in FF says that closed tag in this place is invalid)

diff:

/framework/web/helpers/CJavaScript.php	(working copy)


@@ -31,7 +31,7 @@


 		if($forUrl)


 			return strtr($js,array('%'=>'%25',"t"=>'t',"n"=>'n',"r"=>'r','"'=>'"','''=>'\'','\'=>'\\'));


 		else


-			return strtr($js,array("t"=>'t',"n"=>'n',"r"=>'r','"'=>'"','''=>'\'','\'=>'\\'));


+			return strtr($js,array("t"=>'t',"n"=>'n',"r"=>'r','"'=>'"','''=>'\'','\'=>'\\','</'=>'</'));


 	}


 


 	/**

I think this should be correct if you use w3c validator.

The js code is enclosed in a CDATA section.