{
final Source source = new Source ( html );
final Tag[] tags = source.fullSequentialParse ();
if ( tags.length > 0 )
{
final Renderer renderer = source.getRenderer ();
renderer.setIncludeHyperlinkURLs ( false );
renderer.setIncludeAlternateText ( false );
renderer.setDecorateFontStyles ( false );
renderer.setMaxLineLength ( Integer.MAX_VALUE );
renderer.setBlockIndentSize ( 4 );
renderer.setConvertNonBreakingSpaces ( false );
renderer.setNewLine ( lineSeparator );
return renderer.toString ();
}
else
{
return html;
}