mganss / HtmlSanitizer

Cleans HTML to avoid XSS attacks
MIT License
1.55k stars 200 forks source link

Added namespace import to code sample #399

Closed naasking closed 1 year ago

naasking commented 1 year ago

The namespace for the sanitizer isn't described anywhere so add it to the main code sample. I had to check the code itself, so I think a simple mention in the first code sample shown would suffice.

codecov[bot] commented 1 year ago

Codecov Report

Base: 94.43% // Head: 94.43% // No change to project coverage :thumbsup:

Coverage data is based on head (0b71597) compared to base (4347747). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #399 +/- ## ======================================= Coverage 94.43% 94.43% ======================================= Files 6 6 Lines 827 827 Branches 79 79 ======================================= Hits 781 781 Misses 34 34 Partials 12 12 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Ganss). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Michael+Ganss)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.