johnculviner/jquery.fileDownload — pull request #5 by doronhorwitz (2012-08-05 17:40:00+00:00)
Title: Custom HTML entity encoding

Resorted to just plain old string replacement.
Using jQuery was not good enough because it does not encode newlines and double-quotes (weirdly).
I've left out any URL encoding against the suggestions in my comments from before. I've just done HTML entity encoding cause URL encoding is unnecessary and logically is done by the browser.