goog.format.HtmlPrettyPrinter |
opt_timeOutMillis
: number=
Max # milliseconds to spend on #format. If
this time is exceeded, return partially formatted. 0 or negative number
indicates no timeout.
|
![]()
Max # milliseconds to spend on #format.
|
Code » |
Static utility function. See prototype #format.
|
code » | |
Singleton lazy initializer.
Returns: !goog.format.HtmlPrettyPrinter
Singleton.
|
code » |
![]()
'Block' tags. We should add newlines before and after these tags during
pretty printing. Tags drawn mostly from HTML4 definitions for block and other
non-online tags, excepting the ones in
#goog.format.HtmlPrettyPrinter.NON_PRETTY_PRINTED_TAGS_.
|
Code » | |
![]()
Non-block tags that break flow. We insert a line break after, but not before
these. Tags drawn from HTML4 definitions.
|
Code » | |
![]()
Empty tags. These are treated as both start and end tags.
|
Code » | |
![]()
Tags whose contents we don't want pretty printed.
|
Code » | |
![]()
List of patterns used to tokenize HTML for pretty printing. Cache
subexpression for tag name.
comment|meta-tag|tag|text|other-less-than-characters
|
Code » | |
Singleton.
|
Code » |