← All nodes
Unstructured Text

Remove HTML Tags

Turn HTML code into readable plain text, with line breaks where paragraphs and list items were.

When to use it

Typical uses: Extracting article text from saved web pages; Converting HTML email templates into plain-text versions; Cleaning CMS exports that contain formatting tags.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Remove HTML Tags: an example

    Text arriving
    Text
    <h1>Welcome</h1> <p>Fresh <b>coffee</b> &amp; tea.</p> <ul><li>Espresso</li><li>Latte</li></ul> <script>track();</script>
    The text after this node
    Text
    Welcome Fresh coffee & tea. Espresso Latte

    Worth knowing

    • Is it safe to paste HTML from unknown sites? Yes. The code is treated as plain text and is never rendered or executed.
    • Are links kept? The visible link text is kept, but the URL inside the href attribute is removed. To collect the URLs, use Extract URLs on the original HTML.
    • What if I want to show HTML code as text on a web page? Use the HTML Encoder, which converts tags into entities instead of removing them.
    • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

    Others in Unstructured Text