1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 13:29:12 -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 Ensure that Chinese punctuation is not ambiguous when locale is Chinese (#22019) 2022-12-04 17:57:30 +00:00
ambiguous_gen.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
ambiguous_gen_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
breakwriter.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
breakwriter_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
invisible_gen.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00