summaryrefslogtreecommitdiff
path: root/libgo/go/html/entity.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/html/entity.go')
-rw-r--r--libgo/go/html/entity.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/html/entity.go b/libgo/go/html/entity.go
index 1530290cb38..21263e22d8c 100644
--- a/libgo/go/html/entity.go
+++ b/libgo/go/html/entity.go
@@ -4,6 +4,9 @@
package html
+// All entities that do not end with ';' are 6 or fewer bytes long.
+const longestEntityWithoutSemicolon = 6
+
// entity is a map from HTML entity names to their values. The semicolon matters:
// http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html
// lists both "amp" and "amp;" as two separate entries.