hugo/tpl/internal/go_templates/htmltemplate
Bjørn Erik Pedersen 3854a6fa6c Fix Plainify edge cases
This commit replaces the main part of `helpers.StripHTML` with Go's implementation in its html/template package.

It's a little slower, but correctness is more important:

```bash
BenchmarkStripHTMLOld-10    	  680316	      1764 ns/op	     728 B/op	       4 allocs/op
BenchmarkStripHTMLNew-10    	  384520	      3099 ns/op	    2089 B/op	      10 allocs/op
```

Fixes #9199
Fixes #9909
Closes #9410
2022-05-25 17:55:23 +02:00
..
testdata deps: Update to Chroma v0.8.2 2020-11-20 09:30:05 +01:00
attr.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
attr_string.go
clone_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
content.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
content_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
context.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
css.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
css_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
delim_string.go
doc.go Fix Go template script escaping 2020-05-23 22:00:34 +02:00
element_string.go
error.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
escape.go tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ break }}" bug 2022-03-16 13:14:23 +01:00
escape_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
example_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
examplefiles_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
exec_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
html.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
html_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
hugo_template.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00
js.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
js_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
jsctx_string.go
multi_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
state_string.go
template.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
template_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
transition.go tpl/internal/go_templates: Revert formatting 2020-12-03 13:47:43 +01:00
transition_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
url.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
url_test.go tpl: Sync go_templates for Go 1.18 2022-03-16 08:54:25 +01:00
urlpart_string.go