Skip to content

dgparker/unescape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

just exposing Go's html.UnescapeString

UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a larger range of entities than EscapeString escapes. For example, "&aacute;" unescapes to "á", as does "&#225;" and "&#xE1;". UnescapeString(EscapeString(s)) == s always holds, but the converse isn't always true.

install with

go install github.com/dgparker/unescape/cmd/unescape

run with

unescape "&lt;entity1" "entity2&#xE1;"

About

exposing html.UnescapeString

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages