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
regexp.go
regexp_test.go
strings.go
strings_test.go
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