(s string)
| 16 | } |
| 17 | |
| 18 | func EscapeAttribute(s string) string { |
| 19 | s = html.EscapeString(s) |
| 20 | s = strings.Replace(s, "'", "'", -1) |
| 21 | // s = strings.Replace(s, """, "\"", -1) |
| 22 | s = strings.Replace(s, " ", " ", -1) |
| 23 | return s |
| 24 | } |
| 25 | |
| 26 | func EscapeString(s string) string { |
| 27 | s = html.EscapeString(s) |