Clean text
Turns a description pasted with HTML into plain text.
Group: Text
When to use it
Section titled “When to use it”Descriptions coming from a website or a CMS, full of tags (<p>, <br>) and codes such as &.
Settings
Section titled “Settings”- 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.
Example
Section titled “Example”| Before | After |
|---|---|
<p>Summer dress</p><ul><li>100% linen</li></ul> |
Summer dress 100% linen |
Salt & pepper |
Salt & pepper |
Moteur 540 followed by a fire emoji (emojis removed) |
Moteur 540 |
Good to know
Section titled “Good to know”- 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.