duckduckgo / zeroclickinfo-goodies

DuckDuckGo Instant Answers based on Perl & JavaScript
https://duckduckhack.com/
Other
978 stars 1.77k forks source link

Cheat Sheets: Need to encode angle brackets "<", ">" inside code blocks #1414

Closed moollaza closed 8 years ago

moollaza commented 8 years ago

Looks like the Emacs Cheat Sheet is slightly broken now. The "Search and Replace" section contains a key with [<replace-string>] in it. The angle brackets aren't being encoded and so a <replace-string></replace-string> element is being created on the page.

https://duckduckgo.com/?q=emacs+cheat+sheet&t=ffab&ia=cheatsheet&iax=1


IA Page: https://duck.co/ia/view/cheat_sheets

mintsoft commented 8 years ago

@moollaza Isn't this html_enc rather than escape?

moollaza commented 8 years ago

@moollaza Isn't this html_enc rather than escape?

@mintsoft whoops. You're totally right. Updated the phrasing :+1: Thanks!

mattr555 commented 8 years ago

Also observed this on the bash cheat sheet:

screenshot - 08292015 - 09 08 16 am