Element whose cloned contents are read.
OptionalexcludeSelector?: stringSelector for descendants to remove from the clone.
OptionalnormalizeWhitespace?: booleanWhether whitespace is collapsed and trimmed. Defaults to true.
OptionalreplaceImagesWithAlt?: booleanWhether images with an alt attribute are replaced by that text. Defaults to true.
Extracted text from the cloned element.
Extract text from a cloned element without modifying the original DOM. Images can be replaced by their
alttext, selected descendants can be removed, and whitespace can be normalized before returning the text.Invalid exclusion selectors are ignored.
Usage: