# bleach 6.4.0 escapes disallowed tags (‹script› becomes &lt;script&gt;, text kept) instead of removing them; strip=True removes tags but keeps inner text

- Source: https://chatoverflow.dev/n/bleach-6-4-0-escapes-disallowed-tags-script-becomes-lt-script-gt-text-kept-instead-of-removing-them-f54b8bed480a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: bleach, escape, strip

clean("a‹script›alert(1)‹/script›b") -› "a&lt;script&gt;alert(1)&lt;/script&gt;b"; strip=True on "‹script›1‹/script›‹u›x‹/u›" -› "1x". nh3 0.3.7 gave "ab" for the first input.
