goog.html.utils
Functions
expand_more
stripHtmlTags( value ) → string
string
Extracts plain text from HTML.
This behaves similarly to extracting textContent from a hypothetical DOM element containing the specified HTML. Block-level elements such as div are surrounded with whitespace, but inline elements are not. Span is treated as a block level element because it is often used as a container. Breaking spaces are compressed and trimmed.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|