mirror of
https://github.com/ckaczor/Common.Wpf.git
synced 2026-01-13 17:22:47 -05:00
Escaping screws up the colors - duh!
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Security;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
@@ -17,9 +16,6 @@ namespace Common.Wpf.HtmlLabelControl
|
|||||||
{
|
{
|
||||||
_parentControl = parentControl;
|
_parentControl = parentControl;
|
||||||
|
|
||||||
// Escape the supplied text
|
|
||||||
text = SecurityElement.Escape(text);
|
|
||||||
|
|
||||||
// Add a root tag so the parser is happy
|
// Add a root tag so the parser is happy
|
||||||
text = string.Format(CultureInfo.InvariantCulture, "<body>{0}</body>", text);
|
text = string.Format(CultureInfo.InvariantCulture, "<body>{0}</body>", text);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user