Descriptionencoding/json: escape & always
There are a few different places in the code that escape
possibly-problematic characters like < > and &.
This one was the only one missing &, so add it.
This means that if you Marshal a string, you get the
same answer you do if you Marshal a string and
pass it through the compactor. (Ironically, the
compaction makes the string longer.)
Because html/template invokes json.Marshal to
prepare escaped strings for JavaScript, this changes
the form of some of the escaped strings, but not
their meaning.
Patch Set 1 #Patch Set 2 : diff -r b1c9e72c2ca3 https://code.google.com/p/go/ #Patch Set 3 : diff -r b1c9e72c2ca3 https://code.google.com/p/go/ #Patch Set 4 : diff -r 690c179cc3fd https://code.google.com/p/go/ #
MessagesTotal messages: 3
|