diff --git a/html.go b/html.go
index 1c84142..6517746 100644
--- a/html.go
+++ b/html.go
@@ -79,7 +79,7 @@ func (n *HtmlNode) GetElementsByClass(class string) []*HtmlNode {
}
}
-func (n *HtmlNode) text() string {
+func (n *HtmlNode) Text() string {
if n == nil {
return ""
}
@@ -98,7 +98,7 @@ func (n *HtmlNode) text() string {
}
}
-func (n *HtmlNode) firstText() string {
+func (n *HtmlNode) FirstText() string {
text := n.Find(func(n *HtmlNode) bool { return n.Type == html.TextNode })
return strings.TrimSpace(text.Data)
}