fix: title in xml not escape

This commit is contained in:
henry.chen
2026-01-04 09:54:25 +08:00
parent 0fdd8e0bd6
commit 14b4534c1e
2 changed files with 5 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package tools
import (
"encoding/base64"
"html"
htmpl "html/template"
"io"
"log"
@@ -26,6 +27,7 @@ func init() {
TplFuncMap["isnotzero"] = IsNotZero
TplFuncMap["getavatar"] = GetAvatar
TplFuncMap["imgtonormal"] = ImgToNormal
TplFuncMap["xmlescape"] = html.EscapeString
}
// Str2html string to html