Fixed getHtml and expose newLine