▲ escape-goat - Escape a string for use in HTML at github.com▼4 up and 0 down, posted by sindresorhus 2729 days ago 6 comments
xab 2729 days ago. link 3 points ▲ ▼A nice indie game exists with the same name on pc - soon we are running out of package names :) http://store.steampowered.com/app/251370/Escape_Goat/
larry72 2725 days ago. link 1 point ▲ ▼with all the respect for the work of sindre his choice of name was poor. Sure, a little joke on (e)scape-goat but seriously the name does not tell me that it's to escape a string in HTML
iwouldloveto 2729 days ago. link 1 point ▲ ▼I have always referred to this https://github.com/janl/mustache.js/blob/master/mustache.js#L60 Funny that escape-goat escapes less chars. I wonder if mustache overdoes it or escape-goat has a defect
sindresorhus 2728 days ago. link 4 points ▲ ▼Mustache overdo it. Escaping backtick was only necessary for IE8 and older. Escaping `/` and `=` is not needed.