summaryrefslogtreecommitdiffstats
path: root/tpl/internal/go_templates/htmltemplate/hugo_template.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/internal/go_templates/htmltemplate/hugo_template.go')
-rw-r--r--tpl/internal/go_templates/htmltemplate/hugo_template.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tpl/internal/go_templates/htmltemplate/hugo_template.go b/tpl/internal/go_templates/htmltemplate/hugo_template.go
index eba54fbbf..99edf8f68 100644
--- a/tpl/internal/go_templates/htmltemplate/hugo_template.go
+++ b/tpl/internal/go_templates/htmltemplate/hugo_template.go
@@ -34,3 +34,8 @@ func (t *Template) Prepare() (*template.Template, error) {
}
return t.text, nil
}
+
+// See https://github.com/golang/go/issues/5884
+func StripTags(html string) string {
+ return stripTags(html)
+}