Title: What if style, comment, script tags?
Name: Ho Khac Huy
Date: 7/30/2010 5:06:43 AM
What we get within style, comment, script tags?
Title: Doesn't work in all cases
Date: 10/13/2008 10:51:30 AM
You are not accounting for cases when an angle bracket is enclosed in a quoted attribute. For example:
<div title="Look here ->">
That example is perfectly valid markup, and using your expression you would match <div title="Look here ->.
The pattern needs to be:
That will account for quoted attributes using either full quotes or single quoutes.