HTML to Plain Text
Plain text from HTML-encoded content
Clean DataHow it works
1. html-decode Unescape HTML entities 2. html-to-text Convert HTML to plain text preserving line breaks
$ html-decode | html-to-text Examples
Decode HTML entities and strip tags from escaped content
Usage
"<div>Hello & welcome!</div>" | html-decode | html-to-text Convert HTML-encoded product listing to plain text
Usage
"Price: <b>$29.99</b> — Save 20%! <a hre..." | html-decode | html-to-text Clean HTML-encoded email content for a text preview
Usage
"<p>Dear customer,</p><p>Your order has shi..." | html-decode | html-to-text