This includes Jose Luis Martinez's suggestions for the escape_js_string routine, implemented as a TT filter.
Final question: How do you internationalise a bit of text that does want some markup within it? For instance, I want something that outputs:
Click <a href="/about">here</a> for the about page.
If I do something like:
link = '<a href="/about">' _ c.loc("here") _ '</a>';
c.loc("Click %1 for the about page", link)
Then I cannot filter through html for the 2nd loc output.
Is there a nicer way?
Ton
_______________________________________________
List:
Catalyst@...
Listinfo:
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalystSearchable archive:
http://www.mail-archive.com/catalyst@.../Dev site:
http://dev.catalyst.perl.org/