Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleEscapeString (0.12 sec)

  1. src/html/example_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package html_test
    
    import (
    	"fmt"
    	"html"
    )
    
    func ExampleEscapeString() {
    	const s = `"Fran & Freddie's Diner" <******@****.***>`
    	fmt.Println(html.EscapeString(s))
    	// Output: &#34;Fran &amp; Freddie&#39;s Diner&#34; &lt;******@****.***&gt;
    }
    
    func ExampleUnescapeString() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 19 05:15:22 UTC 2015
    - 619 bytes
    - Viewed (0)
Back to top