AI OnAI Off
protected override void AddedControl(System.Web.UI.Control control, int index)
{
base.AddedControl(control, index);
switch(this.InnerProperty.Type)
{
case PropertyDataType.String :
Label lbl = control as Label;
if(lbl != null)
{
lbl.Text = System.Web.HttpContext.Current.Server.HtmlEncode(lbl.Text);
}
break;
}
}
Code not verified!
/HAXEN
&ealig;
. It would be nice to do this job in the database on the property values, and also make the HTML editor in Edit mode convert these characters automatically when saving pages. Give me a note if you've done this kind of work. Frank :)