HTML encode asp.net tree view nodes
<p>I would like to know how to html encode nodes in a asp.net treeview control? I have a requirement that requires the nodes to have items that accepts "&lt;" ">" symbols.</p>

<p>The code sample below is what I'm currently using as a treenode.</p>

<pre><code>public class SampleTreeNode : TreeNode
{
    public SampleTreeNode(string text, string value)
        : base(HttpUtility.HtmlEncode(text), value)
    {

    }
}
</code></pre>

<p>The problem with this is that when I put it a node with text "". It displays the text as "&lt;Test&gt;" instead of "". I'm not sure if this is the best place to put the encode command.</p>
