View Single Post
Old 12-12-2007, 05:17 PM   #3 (permalink)
Geert
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default

Quote:
Originally Posted by bluesaga View Post
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.
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote