Add Unescape Function

Thanks and Credits to LethalLuck from the Openbullet Anomaly Mod for this
This commit is contained in:
meinname
2019-08-10 02:53:03 +02:00
committed by GitHub
parent 6c285d4078
commit 4a89360a4e
+8 -1
View File
@@ -66,6 +66,9 @@ namespace RuriLib
/// <summary>Decodes a URL-encoded input.</summary>
URLDecode,
/// <summary>Unescapes characters in a string.</summary>
Unescape,
/// <summary>Encodes the input to be displayed in HTML or XML.</summary>
HTMLEntityEncode,
@@ -575,7 +578,11 @@ namespace RuriLib
case Function.RegexMatch:
outputString = Regex.Match(localInputString, ReplaceValues(regexMatch, data)).Value;
break;
case Function.Unescape:
outputString = Regex.Unescape(localInputString);
break;
case Function.URLEncode:
outputString = System.Uri.EscapeDataString(localInputString);
break;