mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-10 08:32:26 +08:00
fix: title in xml not escape
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user