Class HtmlText
java.lang.Object
guideme.web.html.HtmlNode
guideme.web.html.HtmlText
A text node. Its content is escaped when written.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of the attribute, or null if it isn't set or has no value.children()content()name()Returns the name of the HTML tag or an empty string for text nodes.Returns the HTML of this node and its descendants.setAttribute(String name, @Nullable String value) Sets an attribute.Returns the text of this node and its descendants, without markup.Methods inherited from class HtmlNode
escapeAttribute, escapeHtml, hasAttribute, setAttribute, setAttribute, tag, tag, tag, tag, text
-
Constructor Details
-
HtmlText
-
-
Method Details
-
name
-
content
-
textContent
Description copied from class:HtmlNodeReturns the text of this node and its descendants, without markup.- Specified by:
textContentin classHtmlNode- Returns:
- the text of this node and its descendants, without markup
-
outerHtml
-
attribute
-
setAttribute
-
children
-