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

Sanitise fields of MarkupText #60

Open
Michael-1 opened this issue Jan 9, 2023 · 0 comments
Open

Sanitise fields of MarkupText #60

Michael-1 opened this issue Jan 9, 2023 · 0 comments

Comments

@Michael-1
Copy link

I am using MarkupText to be able to use translation labels with HTML markup. At the same time, I would like that the fields that are interpolated into the translation to be sanitised (e.g. <span> to be rendered as &lt;span&gt;). The background is that field contents are dynamic, and often come from user input, an API or URL parameters, so they are susceptible to cross-site scripting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant