HTML Escape / Unescape

Escape or unescape characters from input HTML content.



The following characters are reserved in HTML and must be replaced with their corresponding entities in HTML:

Special character name Special character Is replaced
Ampersand & &
Less-than < &lt;
Greater-than > &gt;
Quotes " &quot;

What is HTML?

HTML (stands for Hypertext Markup Language) is a computer language that makes up most web pages and online applications. A hypertext is a text that is used to reference other pieces of text, while a markup language is a series of markings that tells web servers the style and structure of a document. HTML (HyperText Markup Language), allows web users to create and structure sections, paragraphs, and links using elements, tags, and attributes. Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document. Hence, HTML is a markup language which is used for creating attractive web pages with the help of styling, and which looks in a nice format on a web browser. An HTML document is made of many HTML tags and each HTML tag contains different content.

What is an escape character?

An escape character is an alternative version of a symbol. In HTML, there are some characters that are considered reserved (such as less than (<) and greater than (>) signs, which also signify tags) and must be replaced by using the character's HTML code name or number, so that the character will be read as a regular character and not a reserved HTML character. Escape characters will always begin with the ampersand symbol (&) and end with a semicolon symbol (;). The characters in between the ampersand and semicolon make up the specific code name or number for a particular character. The specific code name is the entity name and the code number is the entity number. The entity name and entity number are synonymous in most cases, but some browsers may not support all entity names.