Frontend Weekly
Published in

Frontend Weekly

3 ways to split and remove HTML from a string

Consider the possibility that you are going headless or building an SaaS application and are not relying on a server side programming language to do the work for you, you might sometimes find yourself in need of needing to remove HTML from a string. In this article, I’ll show you a few simple ways on how you can split and remove all HTML from a string.

TIP: You can find my…




It's really hard to keep up with all the front-end development news out there. Let us help you. We hand-pick interesting articles related to front-end development. You can also subscribe to our weekly newsletter at

Recommended from Medium

Using Bootstrap’s Progress Bar When Data Is L oading


How I make OTP Service which works like Facebook Account Kit

Regenerate the certificates used by the ePO server service

Queue traffic shadowing in service of refactoring

What is InsureDAO?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicky Christensen

Nicky Christensen

Team Lead & Frontend Tech Lead @ — Personal: /! Writing about all things that come to mind!

More from Medium

Get the First, Last and Middle Elements of an Array using JavaScript

Cookies & sessions 🍪

Error Handling with JavaScript Try Catch

How to extract the ID of a YouTube or Vimeo URL with Javascript