<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2 Jul 2009, at 09:35, Ton Voon wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Does everyone agree this makes sense? If so, any objections if I add this to <a href="http://dev.catalystframework.org/wiki/best_practices?">http://dev.catalystframework.org/wiki/best_practices?</a></div></blockquote><div><br></div>I've added a section at&nbsp;<a href="http://dev.catalystframework.org/wiki/best_practices">http://dev.catalystframework.org/wiki/best_practices</a> now.</div><div><br></div><div>This includes Jose Luis Martinez's suggestions for the escape_js_string routine, implemented as a TT filter.</div><div><br></div><div>Final question: How do you internationalise a bit of text that does want some markup within it? For instance, I want something that outputs:</div><div><br></div><div>Click &lt;a href="/about">here&lt;/a> for the about page.</div><div><br></div><div>If I do something like:</div><div><br></div><div>link = '&lt;a href="/about">' _ c.loc("here") _ '&lt;/a>';</div><div>c.loc("Click %1 for the about page", link)</div><div><br></div><div>Then I cannot filter through html for the 2nd loc output.</div><div><br></div><div>Is there a nicer way?</div><div><br></div><div>Ton</div></body></html>