-
Notifications
You must be signed in to change notification settings - Fork 125
dartdoc should sanitize html #1995
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
Comments
I see this relates to issues like #1529 (comment) and #1527 (comment), but why isn't simply all input escaped here? |
You are right, this should be escaped. Not sure why all input is not escaped, will take a look. |
Dartdoc intentionally allows some html. However, right now it allows a very broad range of HTML to be encoded and it's not documented what we allow and don't. This should be locked down further. |
This is likely to be implemented via https://pub.dev/packages/sanitize_html. |
Done! |
I posted the following in a now-closed issue report re: dartdoc does not escape html:
Originally posted by @redcrossp in #1458 (comment)
Is there a reason this isn't the current behavior? Are steps being taken to implement this?
The text was updated successfully, but these errors were encountered: