This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
package model
|
|
|
|
import (
|
|
"bytes"
|
|
"encoding/xml"
|
|
)
|
|
|
|
func XMLEscape(s string) string {
|
|
var b bytes.Buffer
|
|
xml.Escape(&b, []byte(s))
|
|
|
|
return b.String()
|
|
}
|