Try recode (archived page; GitHub mirror; Debian page):
$ echo '<' |recode html..ascii
<
Install on Linux and similar Unix-y systems:
$ sudo apt-get install recode
Install on Mac OS using:
$ brew install recode
More Related Contents:
- Which characters need to be escaped in HTML?
- What do < and > stand for?
- Sed remove tags from html file
- Get content between a pair of HTML tags using Bash
- Easiest way to extract the urls from an html page using sed or awk only
- Sending HTML mail using a shell script
- Two column width 50% css [closed]
- vertical-align with Bootstrap 3
- How to align content of a div to the bottom
- Are the decimal places in a CSS width respected?
- Can I set subject/content of email using mailto:?
- How to allow http content within an iframe on a https site [duplicate]
- In IndexedDB, is there a way to make a sorted compound query?
- Color for Unicode Emoji
- Detect click outside Angular component
- Browser Caching of CSS files
- How to change scroll bar position with CSS?
- Dual-Color Text
- Low latency (< 2s) live video streaming HTML5 solutions?
- Internet Explorer 11 disable “display intranet sites in compatibility view” via meta tag not working
- DISABLE the Horizontal Scroll [closed]
- How to remove focus around buttons on click
- Audio Tag Autoplay Not working in mobile
- How to cut a circular part from an image?
- Why are Bootstrap’s form elements rendered terribly with Struts2-Boostrap-Plugin?
- Format HTML table cell so that Excel formats as text?
- How to darken a background using CSS?
- How to keep :active css style after click a button
- CSS attribute selector does not work a href
- HTML5 Canvas – Fill circle with image