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

Avoid various uses of html_safe #2898

Merged
merged 1 commit into from Oct 21, 2020

Conversation

gravitystorm
Copy link
Collaborator

We can avoid using html_safe in various circumstances, through alternative approaches like i18n keys ending in _html or using safe_join to avoid converting via unsafe string types.

The _html keys approach only work for ActionView helper version of t, not the base I18n.t method.

We can avoid using `html_safe` in various circumstances, through alternative approaches like i18n keys ending in `_html` or using `safe_join` to avoid converting via unsafe string types.

The `_html` keys approach only work for ActionView helper version of `t`, not the base `I18n.t` method.
@tomhughes tomhughes merged commit e80571c into openstreetmap:master Oct 21, 2020
@gravitystorm gravitystorm deleted the html_safe branch November 11, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants