bleach is an HTML sanitizer library. bleach.clean() strips dangerous tags and attributes — sanitizer for XSS flows. bleach.linkify() is also safe.
.clean()Sanitizerbleach.clean(text, tags=..., attributes=..., styles=..., ...) -> str
Strips dangerous HTML from text. XSS sanitizer.
return.linkify()Sanitizerbleach.linkify(text, callbacks=..., skip_tags=None, parse_email=False) -> str
Converts URLs to safe <a> tags. Sanitizer.
return| FQN | Field | |
|---|---|---|
| bleach | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
from codepathfinder.go_rule import PyBleach