看golang html包中的escape.go 文件會發(fā)現(xiàn)有個這樣的定義
var htmlEscaper = strings.NewReplacer(
`&`, "&",
`'`, "'", // "'" is shorter than "'" and apos was not in HTML until HTML5.
`<`, "<",
`>`, ">",
`"`, """, // """ is shorter than """.
)
其中使用到 `` 語法嚣伐, 目前理解應該是不轉義純字符串的意思