Escaping screws up the colors - duh!

This commit is contained in:
2014-10-14 11:22:09 -04:00
parent a7c9354e47
commit d76a255c92

View File

@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Security;
using System.Windows;
using System.Windows.Media;
using System.Xml;
@@ -17,9 +16,6 @@ namespace Common.Wpf.HtmlLabelControl
{
_parentControl = parentControl;
// Escape the supplied text
text = SecurityElement.Escape(text);
// Add a root tag so the parser is happy
text = string.Format(CultureInfo.InvariantCulture, "<body>{0}</body>", text);