<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 10:22 AM, Ton Voon <span dir="ltr">&lt;<a href="mailto:ton.voon@opsera.com">ton.voon@opsera.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<br>
I wanted to find out how other people are handling this problem.<br>
<br>
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&#39;il vous plait), then it could break the HTML:<br>
<br>
&lt;select value=&#39;[% c.loc(&quot;Please select one&quot;) %]&#39;&gt;</blockquote><div><br>I would think the correct approach would be a filter:<br><br>     &lt;select value=&#39;[% c.loc(&quot;Please select one&quot;) | html %]&#39;&gt;<br>
<br>but the default html filter only escapes double quotes.<br></div><br></div><br><br clear="all"><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org">moseley@hank.org</a><br>