]> Cypherpunks repositories - gostls13.git/commitdiff
html/template: add available godoc link
authoralirezaarzehgar <alirezaarzehgar82@gmail.com>
Wed, 19 Feb 2025 16:17:14 +0000 (19:47 +0330)
committerGopher Robot <gobot@golang.org>
Wed, 19 Feb 2025 21:39:04 +0000 (13:39 -0800)
Change-Id: I50404dbf0f10ee59007bd0dc5353f38e056a0430
Reviewed-on: https://go-review.googlesource.com/c/go/+/650655
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/html/escape.go

index b718c247ff12f0a84d3042621df2a980992a77f8..d66a3e48378faa4beba20ed388d22afc1f605cfa 100644 (file)
@@ -173,16 +173,16 @@ var htmlEscaper = strings.NewReplacer(
 
 // EscapeString escapes special characters like "<" to become "&lt;". It
 // escapes only five such characters: <, >, &, ' and ".
-// UnescapeString(EscapeString(s)) == s always holds, but the converse isn't
+// [UnescapeString](EscapeString(s)) == s always holds, but the converse isn't
 // always true.
 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;"
+// 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
+// UnescapeString([EscapeString](s)) == s always holds, but the converse isn't
 // always true.
 func UnescapeString(s string) string {
        i := strings.IndexByte(s, '&')