On Wed, Jul 1, 2009 at 10:22 AM, Ton Voon <ton.v...@opsera.com> wrote:
> Hi! > > I wanted to find out how other people are handling this problem. > > I am localising our app, which consists of strings in html and in dynamic > javascript snippets. However, if the translated value contains quotations > (such as: s'il vous plait), then it could break the HTML: > > <select value='[% c.loc("Please select one") %]'> I would think the correct approach would be a filter: <select value='[% c.loc("Please select one") | html %]'> but the default html filter only escapes double quotes. -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/