Unescape HTML

Decode HTML entities back to their original characters.

Code

Utilities
echo "$s" | sed 's/&lt;/</g; s/&gt;/>/g; s/&amp;/\&/g; s/&quot;/"/g; s/&#39;/'\''/g'

Parameters

HTML-encoded string.

Server

More Bash Snippets