Skip to content

Clean text

Turns a description pasted with HTML into plain text.

Group: Text

Descriptions coming from a website or a CMS, full of tags (<p>, <br>) and codes such as &amp;.

  • Line breaks: Replace with a space (default, one line) or Keep real line breaks.
  • Also remove emojis: off by default. Removes emojis, flags and skin tones; the spaces they leave are tidied. Text symbols such as © or ™ stay.
Before After
<p>Summer dress</p><ul><li>100% linen</li></ul> Summer dress 100% linen
Salt &amp; pepper Salt & pepper
Moteur 540 followed by a fire emoji (emojis removed) Moteur 540
  • Paragraphs, line breaks and list items become line breaks; every other tag is removed, scripts and styles with their content.
  • Repeated spaces become one. Running the rule twice gives the same result.