Python Strip tags Online
Remove HTML tags.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Tag removal is useful for plain-text extraction. Use an HTML sanitizer before rendering untrusted markup.
- Allowed tags
""
<b>Hello</b> <i>world</i>
Hello world
Using this operation in Python
The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.