add_from_html method

add_from_html

Adds text from specified html string to the collection.

def add_from_html(self, text):
    ...
ParameterTypeDescription
textstrHTML text.

add_from_html

Adds text from specified html string to the collection.

def add_from_html(self, text, resolver, uri):
    ...
ParameterTypeDescription
textstrHTML text.
resolverIExternalResourceResolverResolver callback object which resolves URIs and fetches referrenced objects.
uristrURI for adding HTML document. Used for resolving relative links.

Remarks

Specifying resolver can potentially introduce a vulnurability. Use with caution.

See Also