Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement safe HTML translations #2

Open
roblillack opened this issue Sep 20, 2016 · 0 comments
Open

Implement safe HTML translations #2

roblillack opened this issue Sep 20, 2016 · 0 comments
Milestone

Comments

@roblillack
Copy link
Owner

As part of #1 we disabled implicitly marking translation output as safe HTML without escaping (WTH?). Some users might want to use safe HTML translations. Let's implement this in a way comparable to Ruby on Rails:

  • The translation key has to end in _html or .html if you want to use HTML as part of the translation string
  • The translation function shall always escape parameters that are not already safe HTML before interpolating them into the translation string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant