12-12-2007, 05:17 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
|
Quote:
Originally Posted by bluesaga
So for example you have the html code:
Code:
<a onclick="javascript.writeln(\">these angl>>>>>>e brackets are smelly');">Boo Boo</a>
|
Are you aware that that actually is invalid html? As far as I know html does not allow embedded quotes to be escaped. Put that link in a file and open it in a browser, the javascript won't work and you'll only see the colored part:
Code:
<a onclick="javascript.writeln(\">these angl>>>>>>e brackets are smelly');">Boo Boo</a>
So the question is whether you really want to match html strings like this because when your matching your opening tag beyond the \" you're going on where normal html browsers stop.
|
|
|
|