templates: rename template function Str2html -> Str2HTML

This commit is contained in:
Unknwon
2018-12-10 22:23:56 -05:00
parent d3d8284985
commit db3f0048d8
36 changed files with 72 additions and 72 deletions

View File

@@ -64,7 +64,7 @@ func NewFuncMap() []template.FuncMap {
"AppendAvatarSize": tool.AppendAvatarSize,
"Safe": Safe,
"Sanitize": bluemonday.UGCPolicy().Sanitize,
"Str2html": Str2HTML, // TODO: Rename to Str2HTML
"Str2HTML": Str2HTML,
"NewLine2br": NewLine2br,
"TimeSince": tool.TimeSince,
"RawTimeSince": tool.RawTimeSince,