- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for oacute (0.08 sec)
-
src/html/escape_test.go
ss := []string{ ``, `abc def`, `a & b`, `a&b`, `a & b`, `"`, `"`, `"<&>"`, `"<&>"`, `3&5==1 && 0<1, "0<1", a+acute=á`, `The special characters are: <, >, &, ' and "`, } for _, s := range ss { if got := UnescapeString(EscapeString(s)); got != s { t.Errorf("got %q want %q", got, s) } } } var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 22 12:45:38 UTC 2015 - 3.3K bytes - Viewed (0) -
src/html/escape.go
func EscapeString(s string) string { return htmlEscaper.Replace(s) } // UnescapeString unescapes entities like "<" to become "<". It unescapes a // larger range of entities than EscapeString escapes. For example, "á" // unescapes to "รก", as does "á" and "á". // UnescapeString(EscapeString(s)) == s always holds, but the converse isn't // always true. func UnescapeString(s string) string { populateMapsOnce.Do(populateMaps)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 13 07:00:18 UTC 2020 - 5K bytes - Viewed (0)