goog.html.textExtractor
Functions
expand_more
extractTextContent( html ) → string
string
Safely extracts text from an untrusted HTML string using the HtmlSanitizer. Compared to goog.html.utils.stripHtmlTags, it tries to be smarter about printing newlines between blocks and leave out textual content that would not be displayed to the user (such as SCRIPT and STYLE tags).
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
expand_more
isSupported() → boolean
boolean
Whether the browser supports the text extractor. The extractor depends on the HTML Sanitizer, which only supports IE starting from version 10. Visible for testing.
Parameters | None. | |
---|---|---|
Returns |
|