From 2b6d3b498c92371b5e9721d8ca69bc680f4c80f3 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 3 Sep 2011 10:30:05 +1000 Subject: [PATCH] exp/template/html: string replacement refactoring. R=mikesamuel CC=golang-dev https://golang.org/cl/4968063 --- src/pkg/exp/template/html/js.go | 210 ++++++++++++-------------------- 1 file changed, 79 insertions(+), 131 deletions(-) diff --git a/src/pkg/exp/template/html/js.go b/src/pkg/exp/template/html/js.go index 4480542535f..65479bc13e2 100644 --- a/src/pkg/exp/template/html/js.go +++ b/src/pkg/exp/template/html/js.go @@ -166,53 +166,43 @@ func jsValEscaper(args ...interface{}) string { // JavaScript source, in JavaScript embedded in an HTML5