Skip to content

Instantly share code, notes, and snippets.

@LD8
Created December 25, 2019 08:53
Show Gist options
  • Save LD8/1436f060fc7dfcdfdf3e29126c00ddfc to your computer and use it in GitHub Desktop.
Save LD8/1436f060fc7dfcdfdf3e29126c00ddfc to your computer and use it in GitHub Desktop.
HTML Escape / Unescape
Escapes or unescapes an HTML file removing traces of offending characters that could be wrongfully interpreted as markup.
The following characters are reserved in HTML and must be replaced with their corresponding HTML entities:
```
" is replaced with "
& is replaced with &
< is replaced with &lt;
> is replaced with &gt;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment