private void SetAttribute(JbstContainerControl target, string name, string value) { value = HtmlDistiller.DecodeHtmlEntities(value); if ("style".Equals(name, StringComparison.OrdinalIgnoreCase)) { this.SetStyle(target, null, value); } else { target.Attributes[name] = value; } }
private void AppendChild(string text) { if (String.IsNullOrEmpty(text)) { return; } if (this.current == null) { this.current = this.document; } // this allows HTML entities to be encoded as unicode text = HtmlDistiller.DecodeHtmlEntities(text); JbstLiteral literal = new JbstLiteral(text, true); this.current.ChildControls.Add(literal); }