yeah did, that wrong

This commit is contained in:
Timothy Baldridge 2021-12-20 09:46:35 -07:00
parent 745361b506
commit adba503183

View File

@ -39,7 +39,7 @@ public static class NettleFunctions
protected override object GenerateOutput(TemplateContext context, params object[] parameterValues) protected override object GenerateOutput(TemplateContext context, params object[] parameterValues)
{ {
var value = GetParameterValue<string>("text", parameterValues); var value = GetParameterValue<string>("text", parameterValues);
return Regex.Escape(value).Replace("'", "\'"); return Regex.Escape(value).Replace("'", "\\'");
} }
public override string Description => "Escapes a string"; public override string Description => "Escapes a string";