Skip to Content
  • Website
  • Login
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-strip-html→Examples

Table of Contents

  • Quick Take
  • Ignores code tags and their contents
  • A bypass callback and a do-nothing callback
  • Extract HTML <head> contents
  • Retain href and link label
  • Leave only HTML
  • Leave only opening td tags
  • Leave only td tags
  • Minimal example using Ranges
  • Remove all HTML from a string
  • Strip HTML from a raw JSON string
  • Set the title case using title package
  • Orphan removal from text within HTML
↑ back to top

Quick Take

↑ back to top

Ignores code tags and their contents

↑ back to top

A bypass callback and a do-nothing callback

↑ back to top

Extract HTML <head> contents

↑ back to top

Retain href and link label

↑ back to top

Leave only HTML

↑ back to top

Leave only opening td tags

↑ back to top

Leave only td tags

↑ back to top

Minimal example using Ranges

↑ back to top

Remove all HTML from a string

↑ back to top

Strip HTML from a raw JSON string

↑ back to top

Set the title case using title package

↑ back to top

Orphan removal from text within HTML

↑ back to top
back 

Codsen the company

UK Companies House 🏢 assigned Codsen Ltd a number #9204532 back on Friday, September 5th, 2014. That makes Codsen 10 years, 8 months and 11 days old.

Cookies

We don’t use cookies. This website only tracks anonymised website traffic via Fathomopens in a new tab which is GDPR compliant and all its data is housed exclusively in EU. Our analytics are publicopens in a new tab, see our Privacy Policy.

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab

Trivia

Built with 💿 Remixopens in a new tab framework. See more in Trivia section.
Page performance: TTFBopens in a new tab loading FCPopens in a new tab loading.

Copyright

All rights reserved © Codsen Ltd 2022
All our open source packages are under MIT licenceopens in a new tab