1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00
This commit is contained in:
Ryan Cramer
2020-07-23 12:56:21 -04:00
parent d6b9ee8db8
commit bea09627b2

View File

@@ -1168,7 +1168,7 @@ class WireTextTools extends Wire {
if($charKey !== false) {
// replace escaped char with placeholder ($glue)
$glue = $gluePrefix . $charKey . $glueSuffix;
$escapes[$glue] = $options['keepEscapePrefix'] ? $escapePrefix . $char : $char;
$escapes[$glue] = $options['restoreEscape'] ? $escapePrefix . $char : $char;
$str .= $glue . $part;
} else if($options['unescapeUnknown']) {
// unescape unknown escape char