Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for oacute (0.08 sec)

  1. src/html/escape_test.go

    	ss := []string{
    		``,
    		`abc def`,
    		`a & b`,
    		`a&b`,
    		`a &amp b`,
    		`"`,
    		`"`,
    		`"<&>"`,
    		`&quot;&lt;&amp;&gt;&quot;`,
    		`3&5==1 && 0<1, "0&lt;1", a+acute=&aacute;`,
    		`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)
  2. src/html/escape.go

    func EscapeString(s string) string {
    	return htmlEscaper.Replace(s)
    }
    
    // UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a
    // larger range of entities than EscapeString escapes. For example, "&aacute;"
    // unescapes to "รก", as does "&#225;" and "&#xE1;".
    // 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)
Back to top