[thelist] [ColdFusion] More RegEx Fun

Kae Verens kverens at contactjuggling.org
Wed Feb 26 04:11:01 CST 2003

.jeff wrote:
>>From: Kae Verens
>>>><input type="submit" value="Continue >>>">
>>The above is not valid HTML, so shouldn't be put through
>>the regexp. Replace the above with:
>><input type="submit" value="Continue &gt;&gt;&gt;">
> you know, i used to think so too.  but, i couldn't find anything in the spec
> that said i couldn't use angle brackets in the value attribute (or any
> attribute of any tag for that matter).  just to prove my point, check this
> out:
> http://members.evolt.org/jeff/code/input_value.cfm?sub=1

after re-reading the XML spec, I see the prohibition is only on '<', '&'
and '"' (section 2.3 - regexp [^<&"]).

There is a note there:
Although the EntityValue production allows the definition of an entity
consisting of a single explicit < in the literal (e.g., <!ENTITY mylt
"<">), it is strongly advised to avoid this practice since any reference
to that entity will cause a well-formedness error

Kae Verens               _______\_   webworks.ie
pay:  www.webworks.ie       _____\\__   webhosts
play: www.contactjuggling.org  ___\\\___  design
  kae: kverens.contactjuggling.org _\\\\____ code

More information about the thelist mailing list