Home › Code and dev › HTML Tag Stripper
🔧

HTML Tag Stripper

Strip HTML tags and keep plain text, with optional tag filtering

处理选项
输入 HTML
输出结果

About this tool

The tag stripper extracts plain text from HTML:

  • Strip all tags: remove every tag and keep only the text
  • Strip selected tags: name the tags to remove, such as script, style or div
  • Comments: optionally remove HTML comments
  • Whitespace: optionally collapse repeated spaces and newlines
  • Live: the output updates as you type

When to use it

  • Pull the article body out of a page
  • Clean up HTML from a rich text editor
  • Remove script or style blocks
  • Convert HTML to plain text