Skip to main content

HTML

Enables greater ease in manipulating HTML code, uses JSOUP.


clean


_html.clean(bodyHtml: string, baseUri: string, safelist: org.jsoup.safety.Safelist) : string

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
baseUristring
safelistorg.jsoup.safety.Safelist
Return

( string )


_html.clean(bodyHtml: string, baseUri: string, safelist: org.jsoup.safety.Safelist, outputSettings: org.jsoup.nodes.Document$OutputSettings) : string

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
baseUristring
safelistorg.jsoup.safety.Safelist
outputSettingsorg.jsoup.nodes.Document$OutputSettings
Return

( string )


_html.clean(bodyHtml: string, safelist: org.jsoup.safety.Safelist) : string

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
safelistorg.jsoup.safety.Safelist
Return

( string )


connect


_html.connect(url: string) : org.jsoup.Connection

Attributes
NAMETYPEDESCRIPTION
urlstring
Return

( org.jsoup.Connection )


documentOutputSettings


_html.documentOutputSettings() : org.jsoup.nodes.Document$OutputSettings

Return

( org.jsoup.nodes.Document$OutputSettings )


isValid


_html.isValid(bodyHtml: string, safelist: org.jsoup.safety.Safelist) : boolean

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
safelistorg.jsoup.safety.Safelist
Return

( boolean )


newSession


_html.newSession() : org.jsoup.Connection

Return

( org.jsoup.Connection )


parse


_html.parse(input: InputStream, baseUri: string, charset: string) : org.jsoup.nodes.Document

Description

It performs an interpretation of a content and returns it in HTML.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamContent of the HTML file to be processed.
baseUristringBase Url to resolve relative links.
charsetstringCharacter encoding type code.
Return

( org.jsoup.nodes.Document )

File content processed in HTML.


_html.parse(content: string) : org.jsoup.nodes.Document

Description

Through the HTML code it performs the interpretation and returns the object of manipulation.

Attributes
NAMETYPEDESCRIPTION
contentstringHTML content that will be processed.
Return

( org.jsoup.nodes.Document )

Object of JSOUP that allows interaction with the HTML code.


_html.parse(file: File, baseUri: string, charset: string) : org.jsoup.nodes.Document

Description

It performs an interpretation of the content of a file and returns it in HTML.

Attributes
NAMETYPEDESCRIPTION
fileFileFile to be processed.
baseUristringBase Url to resolve relative links.
charsetstringCharacter encoding type code
Return

( org.jsoup.nodes.Document )

File content in HTML.


_html.parse(storage: Storage, baseUri: string, charset: string) : org.jsoup.nodes.Document

Description

It performs an interpretation of a content and returns it in HTML.

Attributes
NAMETYPEDESCRIPTION
storageStoragePath of the file in storage that will be processed.
baseUristringBase Url to resolve relative links.
charsetstringCharacter encoding type code.
Return

( org.jsoup.nodes.Document )

File content processed in HTML.


parseBodyFragment


_html.parseBodyFragment(bodyHtml: string) : org.jsoup.nodes.Document

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
Return

( org.jsoup.nodes.Document )


_html.parseBodyFragment(bodyHtml: string, baseUri: string) : org.jsoup.nodes.Document

Attributes
NAMETYPEDESCRIPTION
bodyHtmlstring
baseUristring
Return

( org.jsoup.nodes.Document )


parseURL


_html.parseURL(url: string) : org.jsoup.nodes.Document

Description

Get the HTML through a web address (URL), perform the interpretation and return the manipulation object.

Attributes
NAMETYPEDESCRIPTION
urlstringObject that will be converted to text and sent.
Return

( org.jsoup.nodes.Document )

Object of JSOUP that allows interaction with the HTML code.


_html.parseURL(url: string, timeoutMillis: int) : org.jsoup.nodes.Document

Attributes
NAMETYPEDESCRIPTION
urlstring
timeoutMillisint
Return

( org.jsoup.nodes.Document )


safelist


_html.safelist() : org.jsoup.safety.Safelist

Return

( org.jsoup.safety.Safelist )


_html.safelist(copy: org.jsoup.safety.Safelist) : org.jsoup.safety.Safelist

Attributes
NAMETYPEDESCRIPTION
copyorg.jsoup.safety.Safelist
Return

( org.jsoup.safety.Safelist )