escaped,_=EscapeControlReader(strings.NewReader(string(html)),sb,locale,allowed...)// err has been handled in EscapeControlReader
returnescaped,template.HTML(sb.String())
}
// EscapeControlReaders escapes the unicode control sequences in a provided reader of HTML content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte
// EscapeControlReader escapes the unicode control sequences in a provided reader of HTML content and writer in a locale and returns the findings as an EscapeStatus
// EscapeControlStringReader escapes the unicode control sequences in a provided reader of string content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte. HTML line breaks are not inserted after every newline by this method.
"code.gitea.io/gitea/modules/git/internal"//nolint:depguard // only this file can use the internal type CmdArg, other files and packages should use AddXxx functions
// When rendering, the last empty line is not rendered in UI, while the line-number is still counted, to tell users that the file contains a trailing EOL.