mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Add Unescape Function
Thanks and Credits to LethalLuck from the Openbullet Anomaly Mod for this
This commit is contained in:
@@ -67,6 +67,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,
|
||||
|
||||
@@ -576,6 +579,10 @@ namespace RuriLib
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user