getRetainNonTidiedHTML

boolean session.getRetainNonTidiedHTML ( ) (enterprise edition only)

Description

Determine whether or not non-tidied HTML is to be retained for all scrapeable files in this scraping session.

Parameters

This method does not receive any parameters.

Return Values

Returns whether non-tidied HTML is be retained for all scrapeable files or not, as a boolean.

Change Log

Version Description
4.5 Available for enterprise edition.

Examples

Determine if Non-tidied HTML is Being Retained

 // Outputs the non-tidied HTML from the scrapeable file
 // to the log if it was retained otherwise just a message.

 if (session.getRetainNonTidiedHTML())
 {
     session.log( "All scrapeable files will retain non-tidied HTML" );
 }
 else
 {
     session.log( "Non-tidied HTML will not be not retained." );
 }

See Also