lint rule for dangerous html #982
Unanswered
samuelstroschein
asked this question in
[inlang SDK] Feature Requests
Replies: 1 comment 1 reply
-
this is not only applicable to html but also js right? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Messages could contain HTML which would be rendered unescaped, opening the door for script injection and more.
This is especially crucial if community members can contribute translations.
Proposal
Have a lint rule to detect dangerous HTML tags.
The rule likely works better with a whitelist than a blacklist. There are only a few non-dangerous HTML tags.
Related
The introduction of markup placeholders should eliminate the need for unescaped HTML in a string. The proposed lint rule stays relevant nonetheless. No dangerous HTML should be found in messages.
Open questions
Beta Was this translation helpful? Give feedback.
All reactions