formatContent method
Format content according to specified format
Implementation
String formatContent(ContentFormat format) {
if (_htmlContent == null) {
throw ScraperNotInitializedException();
}
return ContentFormatter.format(_htmlContent!, format);
}