On Thu, Jul 9, 2009 at 3:10 PM, Randal L. Schwartz <[email protected]>wrote:
> >>>>> "Bill" == Bill Moseley <[email protected]> writes: > > Bill> [% > Bill> value = meta.value | html; > Bill> key = meta.key | html; > Bill> "<meta name='$key' content='$value'>"; > Bill> %] > > Bill> And $value had a single quote. > > Bill> Is there a reason why replacing single quotes with ' would not > be > Bill> desired with the html filter? > > Because that isn't what it's for. It replaces the *essential* HTML > items (< & >) with their counterparts. > Well, " (") is just as core as those.... but ' (') is not, or at least wasn't historically. Has ' made it into the core (X)HTML specs these days? Anyway you probably should be using " not ' for the HTML attributes there, to avoid that problem...
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
