forgejo/modules/templates
wxiaoguang 2892aaab02
Rename Str2html to SanitizeHTML and clarify its behavior (#29516)
Str2html was abused a lot. So use a proper name for it: SanitizeHTML

And add some tests to show its behavior.

(cherry picked from commit fb42972c057364a1dc99dfb528554e7a94415be7)

Conflicts:
	docs/content/administration/mail-templates.en-us.md
	docs/content/administration/mail-templates.zh-cn.md
	prefer their version always
2024-03-06 12:10:45 +08:00
..
eval
scopedtmpl
vars
base.go
dynamic.go
helper.go Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-06 12:10:45 +08:00
helper_test.go Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-06 12:10:45 +08:00
htmlrenderer.go Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
htmlrenderer_test.go
mailer.go Fix mail template error (#29410) 2024-03-06 12:10:43 +08:00
static.go
templates_bindata.go
util_avatar.go Fix default avatar image size in PR diff page (#28971) 2024-02-02 10:01:11 +00:00
util_dict.go
util_json.go
util_misc.go Improve feed icons and feed merge text color (#27498) 2023-10-07 23:26:27 +00:00
util_render.go Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
util_render_test.go Allow 's in mentions 2024-02-27 18:26:59 +00:00
util_slice.go
util_string.go Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
util_string_test.go templates: HasPrefix support for template.HTML 2024-02-16 15:20:52 +01:00
util_test.go