diff --git a/RuriLib/Blocks/BlockFunction.cs b/RuriLib/Blocks/BlockFunction.cs index 30735e0..183511a 100644 --- a/RuriLib/Blocks/BlockFunction.cs +++ b/RuriLib/Blocks/BlockFunction.cs @@ -66,6 +66,9 @@ namespace RuriLib /// Decodes a URL-encoded input. URLDecode, + + /// Unescapes characters in a string. + Unescape, /// Encodes the input to be displayed in HTML or XML. 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;