/**************************************************************/ private void ProcessText(bool bStart) { string strText = m_strCurrentLine.ToString(); m_strCurrentLine = new StringBuilder(); if (strText == "") { return; } TextNode objNode = new TextNode(strText); if (objNode.ToString() != "") { AddToParent(objNode); } }
public void TextNode_should_encode_its_value() { IHtmlNode node = new TextNode("<span>"); Assert.Equal("<span>", node.ToString()); }
public override void Visit(TextNode node) { debugString.Append('\t', indent); debugString.Append(node.ToString()); debugString.AppendLine(); }