(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Security;
|
||||
|
||||
namespace MonoGame.Tools.Pipeline
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
public static string Unescape(this string text)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return text;
|
||||
|
||||
var result = Uri.UnescapeDataString(text);
|
||||
|
||||
// JCF: XmlReader already does this.
|
||||
/*
|
||||
result = result.Replace("'", "'");
|
||||
result = result.Replace(""", "\"");
|
||||
result = result.Replace(">", ">");
|
||||
result = result.Replace("&", "&");
|
||||
*/
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user