MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / asNormalizedText

Method asNormalizedText

src/main/java/org/htmlunit/html/DomNode.java:756–759  ·  view source on GitHub ↗

Returns a normalized textual representation of this element that represents what would be visible to the user if this page was shown in a web browser. Whitespace is normalized like in the browser and block tags are separated by '\n'. @return a normalized textual representation of this element

()

Source from the content-addressed store, hash-verified

754 * @return a normalized textual representation of this element
755 */
756 public String asNormalizedText() {
757 final HtmlSerializerNormalizedText ser = new HtmlSerializerNormalizedText();
758 return ser.asText(this);
759 }
760
761 /**
762 * Returns a textual representation of this element in the same way as

Callers 15

asNormalizedTextMethod · 0.95
testPlainTextMethod · 0.95
extractTextTocMethod · 0.95
getTextMethod · 0.95
assertTextPresentMethod · 0.45
assertTextNotPresentMethod · 0.45
asStringMethod · 0.45

Calls 1

asTextMethod · 0.95

Tested by 4

asNormalizedTextMethod · 0.76
testPlainTextMethod · 0.76
extractTextTocMethod · 0.76