       lineNode = nextNode
     return blockNode
 
-  @wrapText: (lineNode) ->
+  wrapText: (lineNode) ->
     texts = DOM.getTextNodes(lineNode)
     _.each(texts, (textNode) =>
       if textNode.previousSibling? or textNode.nextSibling? or textNode.parentNode == lineNode

        break
      curNode = curNode.nextSibling

  @stripWhitespace: (html) ->
    # Remove leading and tailing whitespace
    html = html.replace(/^\s+/, '').replace(/\s+$/, '')
    # Remove whitespace between tags, requires &nbsp; for legitmate spaces
    html = html.replace(/\>\s+\</g, '><')
    return html

  @whitelistStyles: (node) ->
    original = DOM.getStyles(node)
    styles = _.omit(original, (value, key) ->
      return !Normalizer.STYLES[key]? or value == Normalizer.STYLES[key]

    return node

  # Wrap inline nodes with block tags
  wrapInline: (lineNode) ->
    return lineNode if DOM.BLOCK_TAGS[lineNode.tagName]?
    blockNode = lineNode.ownerDocument.createElement(DOM.DEFAULT_BLOCK_TAG)
    lineNode.parentNode.insertBefore(blockNode, lineNode)
