using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using System.Web;

namespace JuSNS.UI.Control
{
    [DefaultProperty("Text"), ToolboxData("<{0}:JuSNSLabel runat=server></{0}:JuSNSLabel>")]
    public class JuSNSLabel : System.Web.UI.WebControls.Label
    {
        [Bindable(true), Category("Appearance"), DefaultValue("")]
        /// <summary>
        /// HTML±àÂë
        /// </summary>
        public string HtmlText
        {
            get { return this.Text; }
            set { this.Text = HttpContext.Current.Server.HtmlEncode(value); }
        }
    }
}
