hugo/tpl/strings
Khayyam Saleem c0d15a2897
strings: fix Truncate behavior for formatted html
Before this fix, strings.Truncate would erroneously re-include
attributes from the opening tag in the closing tag when closing
formatted html, due to a bug in how tagnames were extracted from the
regex capture group for html tags used in `truncate.go`. This change
ensures that only the tagname is retained and all attributes are discarded
when storing the tags for closing them later.

Fixes #10399
2023-03-01 17:59:50 +01:00
..
init.go Add a page template func 2023-02-25 19:53:18 +01:00
regexp.go tpl/strings: Add findRESubmatch 2023-01-17 12:14:11 +01:00
regexp_test.go tpl/strings: Add findRESubmatch 2023-01-17 12:14:11 +01:00
strings.go tpl/strings: Add strings.ContainsNonSpace 2023-02-05 20:08:44 +01:00
strings_test.go tpl/strings: Add strings.ContainsNonSpace 2023-02-05 20:08:44 +01:00
truncate.go strings: fix Truncate behavior for formatted html 2023-03-01 17:59:50 +01:00
truncate_test.go strings: fix Truncate behavior for formatted html 2023-03-01 17:59:50 +01:00