summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
Diffstat (limited to 'href.go')
-rw-r--r--href.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/href.go b/href.go
index e1a687b..918a2f2 100644
--- a/href.go
+++ b/href.go
@@ -13,6 +13,8 @@ import (
var errNotHTML = errors.New("not HTML content")
+const maxLen = 500
+
func title(n *html.Node) (s string) {
if n.Type == html.ElementNode && n.Data == "title" {
for c := n.FirstChild; c != nil; c = c.NextSibling {