UHtmlDocument class abstract

Serializes editor blocks to clean semantic HTML and parses HTML back into blocks. Pure Dart, no external dependencies.

Constructors

UHtmlDocument()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

characterCount(String? html) int
Number of characters (excluding markup) in html.
escapeAttr(String s) String
escapeHtml(String s) String
inlineHtml(URichTextController c) String
Serializes one styled text run to inline HTML.
inlineHtmlOf(String text, List<UStyleSpan> spans) String
Serializes text with spans to inline HTML.
parse(String? html) List<UEditorBlock>
parseCssColor(String raw) int?
Parses #rgb, #rrggbb, #aarrggbb and rgb()/rgba() into ARGB.
readingMinutes(String? html, {int wordsPerMinute = 200}) int
Rough reading time in minutes at wordsPerMinute.
serialize(List<UEditorBlock> blocks) String
toPlainText(String? html) String
Strips all tags, returning the readable text of html.
wordCount(String? html) int
Number of whitespace-separated words in html.

Constants

indentStep → const double
Width of a single indent level in CSS pixels.