This tool removes HTML tags from text according to the selected mode. You can remove all tags, preserve line breaks, remove only specific tags, or remove all but a specific set of allowed tags.
Examples:
Remove All HTML Tags
Strips every HTML tag completely, leaving only plain text.
Before:
<p>Hello <strong>World</strong></p>
After:
Hello World
Remove HTML Tags (Preserve Line Breaks)
Replaces certain block-level tags (e.g., <p>, <div>) with line breaks before removing them.
Before:
<p>Hello</p><div>World</div>
After:
Hello World
Remove Only Specific HTML Tags
With the checklist, select the tags you want to remove. For example, if you check <script> and <style>, only those tags will be removed.
Before:
<script>alert("Hi!")</script> <p>Some text</p> <style>p { color:red; }</style>
After (removing script and style):
<p>Some text</p>
Remove All Except Allowed HTML Tags
With the checklist, select the tags you want to retain. For example, if you check <strong>, only that tag will be kept.
Before:
<strong>Important</strong> <em>Note</em>
After (allowing only strong):
<strong>Important</strong> Note