addFromHtml

addFromHtml(String text) function

Adds text from specified html string to the collection.

Parameters

NameTypeDescription
textStringHTML text.

addFromHtml(String text, ExternalResourceResolver resolver, String uri) function

Adds text from specified html string to the collection.

Parameters

NameTypeDescription
textStringHTML text.
resolverExternalResourceResolverResolver callback object which resolves URIs and fetches referrenced objects.
uriStringURI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution.

addFromHtml(String text, HtmlExternalResolver resolver, String uri) function

Adds text from specified html string to the collection.

Parameters

NameTypeDescription
textStringHTML text.
resolverHtmlExternalResolverResolver callback object which resolves URIs and fetches referrenced objects.
uriStringURI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution.