Hi guys,
Just a quick follow-up in case anyone stumbles across this post in the future: my Haml parser now supports proper XSS encoding.
While that code looked like a million laughs to re-implement from scratch (!), I opted to leverage the html/template code.
I have implemented most of the test cases from: .../html/template/escape_test.go in my test page, which look like this:
#jsStrNotUnderEscaped
.expected!= `<button onclick='alert("%3CCincinatti%3E")'>`
.actual= "<button onclick='alert(", data.C, ")'>"
and they all seem to be doing sensible things.
So, a big thank you to Dave and Rob and the whole Go team - it is such a pleasure to work in this language.
Regards,
Travis
On Wednesday, 17 July 2013 11:48:31 UTC+10, David Symonds wrote: