HTML Encoder is used to encode or escape text that is normally unsafe for transmission in HTML. These are special characters that have special meaning in the HTML format.
Output: HTML encoded text
Decode or unescape text that has been encoded using h t m l encoding back to it's original form & download the output
View ToolCertain characters need to be encoded (escaped) in HTML. Read more at wikipedia.
Example Substitutions
- & → & (ampersand, U+0026)
- < → < (less-than sign, U+003C)
- > → > (greater-than sign, U+003E)
- " → " (quotation mark, U+0022)
- ' → ' (apostrophe, U+0027)
How to do HTML encoding in various programming languages
- Language: C#
- Encode: System.Net.WebUtility.HtmlEncode()
- Decode: System.Net.WebUtility.HtmlDecode()
- Example: Example
- Documentation: HtmlEncode() HtmlDecode()
 
- Language: VB .NET
- Encode: System.Net.WebUtility.HtmlEncode()
- Decode: System.Net.WebUtility.HtmlDecode()
- Example: Example
- Documentation: HtmlEncode() HtmlDecode()
 
- Language: Java
- Encode: org.apache.commons.lang.StringEscapeUtils.escapeHtml()
- Decode: org.apache.commons.lang.StringEscapeUtils.unescapeHtml()
- Example: Example
- Documentation: escapeHtml() unescapeHtml()
 
- Language: JavaScript
- Encode: htmlEncode()
- Decode: htmlDecode()
- Example: Example
- Documentation:
 
- Language: Python
- Encode: html.escape()
- Decode: html.unescape()
- Example: escape() unescape()
- Documentation: Documentation
 
History
- Aug 20, 2017
- Tool Launched
Comments 0