function() {
    var doc = this._doc;

    // Remove all style tags in head
    this._removeNodes(doc.getElementsByTagName("style"));

    if (doc.body) {
      this._replaceBrs(doc.body);
    }

    this._replaceNodeTags(doc.getElementsByTagName("font"), "SPAN");
  }
function() {
    var doc = this._doc;

    // Remove all style tags in head
    this._removeNodes(doc.getElementsByTagName("style"));

    if (doc.body) {
      this._replaceBrs(doc.body);
    }

    this._replaceNodeTags(doc.getElementsByTagName("font"), "SPAN");
  }
function ( ) { var doc = this . _doc ; // Remove all style tags in head this . _removeNodes ( doc . getElementsByTagName ( "style" ) ) ; if ( doc . body ) { this . _replaceBrs ( doc . body ) ; } this . _replaceNodeTags ( doc . getElementsByTagName ( "font" ) , "SPAN" ) ; }
Prepare the HTML document for readability to scrape it.
This includes things like stripping javascript, CSS, and handling terrible markup.

@return void
Prepare the HTML document for readability to scrape it . This includes things like stripping javascript CSS and handling terrible markup .
Remove all style tags in head and body