[Catalyst] html escaping question
Ash Berlin
ash_cpan at firemirror.com
Wed Mar 21 09:38:32 GMT 2007
Mario Minati wrote:
> Hello @all,
>
> as you could help me that fast and excellent yesterday I have an other
> question to you ;)
>
> What is the best/common practice to get text that might containt html
> escapable characters (e. g. '&', '<') from a form field to catalyst to db and
> back to form field?
>
> At the moment I'm thinking of not doing any html escaping at all and believe
> in unicode to handle the encoding correctly, but I would ran into problems
> with '<funname>'.
>
> So if I escape a string and send it back to the form the content of the
> textfield is '<funame>'. Why is that?
>
> Again every thought is allmost welcome.
>
> Greets,
> Mario Minati
I'll asume you are using TT since you didn't say otherwise'
[% '<funname>' | html %]
More information about the Catalyst
mailing list