diff options
Diffstat (limited to 'src/html/template/html.go')
| -rw-r--r-- | src/html/template/html.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/template/html.go b/src/html/template/html.go index 46e9d93151..bcca0b51a0 100644 --- a/src/html/template/html.go +++ b/src/html/template/html.go @@ -176,7 +176,7 @@ func htmlReplacer(s string, replacementTable []string, badRunes bool) string { // stripTags takes a snippet of HTML and returns only the text content. // For example, `<b>¡Hi!</b> <script>...</script>` -> `¡Hi! `. func stripTags(html string) string { - var b bytes.Buffer + var b strings.Builder s, c, i, allText := []byte(html), context{}, 0, true // Using the transition funcs helps us avoid mangling // `<div title="1>2">` or `I <3 Ponies!`. |
