Skip to content


Subversion checkout URL

You can clone with
Download ZIP


In blog demo, the _() not works as expect #726

zhkzyth opened this Issue · 1 comment

2 participants


Hi, i try to run the blog demo, but got some srange output from _ function.

{{ _('<a href="%(url)s">Sign in</a> to compose/edit') % {"url": "/auth/login?next=" + url_escape(request.uri)} }}

After the translate, the a tag and other entities were escaped.Is this a bug, or it is the duty for the developer use js to render it correctly?


This is a bug in the demo. It has to do with autoescaping instead of the _() function: this expression should use {% raw _(...) %} instead of {{ _(...) }} so the tags don't get escaped.

@bdarnell bdarnell closed this in 74c6075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.