         // Serialize Attributes
         var attributes = ""
         for attribute in node.attributes {
-            attributes += String(.space) + print(attribute: attribute)
+            attributes += String(.space) + convert(attribute: attribute)
         }
 
         // Opening Tag


    /// Serializes a Node into it's HTML String Representation
    ///
    func print(node: Node, level: Int = 0) -> String {
        switch node {
        case let node as CommentNode:
            return print(comment: node)
        case let node as ElementNode:
            return print(element: node, level: level)
        case let node as TextNode:
            return print(text: node)
        default:
            fatalError("We're missing support for a node type.  This should not happen.")
        }


    /// Serializes a TextNode into it's HTML String Representation
    ///
    private func convert(text node: TextNode) -> String {
        return node.text().escapeHtmlEntities().encodeHtmlEntities()
    }

