0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 18:34:10 -05:00
forgejo/modules/charset
wxiaoguang 65248945c9
Refactor locale&string&template related code (#29165)
Clarify when "string" should be used (and be escaped), and when
"template.HTML" should be used (no need to escape)

And help PRs like  #29059 , to render the error messages correctly.

(cherry picked from commit f3eb835886031df7a562abc123c3f6011c81eca8)

Conflicts:
	modules/web/middleware/binding.go
	routers/web/feed/convert.go
	tests/integration/branches_test.go
	tests/integration/repo_branch_test.go
	trivial context conflicts
2024-02-16 15:20:52 +01:00
..
ambiguous Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
invisible Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
ambiguous.go
ambiguous_gen.go
ambiguous_gen_test.go
breakwriter.go
breakwriter_test.go
charset.go Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
charset_test.go Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
escape.go Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
escape_status.go
escape_stream.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
escape_test.go Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
htmlstream.go
invisible_gen.go