nl_tokens: Replace non css content in a html file with empty lines
pl_tokens: function extractStyles ( src ) { var isInBlock = false , lines = [ ] ; src . <mask> ( / \r / g , "" ) . split ( "\n" ) . forEach ( function ( l ) { // we're at the end of the style tag if ( l . indexOf ( "</style" ) > - 1 ) { lines [ lines . length ] = "" ; isInBlock = false ; return ; } if ( isInBlock ) { lines [ lines . length ] = l ; } else { lines [ lines . length ] = "" ; } if ( l . indexOf ( "<style" ) > - 1 ) { isInBlock = true ; } } ) ; return lines . join ( "\n" ) . replace ( / \{\$(\w+\.)*\w+\} / g , "{}" ) ; }