src/helpers.js
function cleanStyles(e) {
  if (!e) return;


  // Remove any root styles, if we're able.
  if (typeof e.removeAttribute == 'function' && e.className != 'readability-styled') e.removeAttribute('style');

  // Go until there are no more child nodes
  var cur = e.firstChild;
  while (cur) {
    if (cur.nodeType == 1) {
      // Remove style attribute(s) :
      if (cur.className != "readability-styled") {
        cur.removeAttribute("style");
      }
      cleanStyles(cur);
    }
    cur = cur.nextSibling;
  }
}
function cleanStyles(e) {
  if (!e) return;


  // Remove any root styles, if we're able.
  if (typeof e.removeAttribute == 'function' && e.className != 'readability-styled') e.removeAttribute('style');

  // Go until there are no more child nodes
  var cur = e.firstChild;
  while (cur) {
    if (cur.nodeType == 1) {
      // Remove style attribute(s) :
      if (cur.className != "readability-styled") {
        cur.removeAttribute("style");
      }
      cleanStyles(cur);
    }
    cur = cur.nextSibling;
  }
}
function cleanStyles ( e ) { if ( ! e ) return ; // Remove any root styles, if we're able. if ( typeof e . removeAttribute == 'function' && e . className != 'readability-styled' ) e . removeAttribute ( 'style' ) ; // Go until there are no more child nodes var cur = e . firstChild ; while ( cur ) { if ( cur . nodeType == 1 ) { // Remove style attribute(s) : if ( cur . className != "readability-styled" ) { cur . removeAttribute ( "style" ) ; } cleanStyles ( cur ) ; } cur = cur . nextSibling ; } }
Remove the style attribute on every e and under.

@param Element
@return void
Remove the style attribute on every e and under .