Permalink to Table of ContentsTable of Contents
- Quick Take
- Ignores code tags and their contents
- A bypass callback and a do-nothing callback
- Strip an entire CDATA section
- Decode HTML entities before recognising and stripping encoded tags
- Keep a link destination next to its label
- Put a retained link destination on a new paragraph
- Extract HTML
<head>contents - Strip an HTML comment and prevent adjacent text from joining
- Preserve selected tags while stripping the rest
- Strip a JSX component tag from surrounding text
- Retain href and link label
- Leave only HTML
- Leave only opening
tdtags - Leave only
tdtags - Minimal example using Ranges
- Preserve indentation while collapsing whitespace around stripped tags
- Leave JSP scriptlets intact while stripping HTML
- Preserve punctuation around removed inline tags
- Preserve literal comparison brackets in plain text
- Insert spaces when removing tags between adjacent text
- Map progress reporting into a custom percentage range
- Remove all HTML from a string
- Strip script tags but retain their text when paired-content removal is disabled
- Strip HTML from a raw JSON string
- Remove a selected tag pair together with its contents
- Preserve custom elements while stripping recognised HTML tags
- Trim ordinary spaces while preserving tabs and line breaks
- Prevent widow words while preserving HTML
- Wrap a retained link destination with custom markers