Descriptionexp/template/html: do not escape the RHS of assignments
In
{{$x := . | foo}}
{{$x}}
the first action is a variable assignment that contributes
nothing to the output while the first is a use that needs
to be escaped.
This CL fixes escapeAction to distinguish assignments from
interpolations and to only modify interpolations.
Patch Set 1 #Patch Set 2 : diff -r 05f0f5fe5d5e https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 05f0f5fe5d5e https://go.googlecode.com/hg/ #Patch Set 4 : diff -r c8a7809fabcd https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|