mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix {!! !!} unescaped echos not being recognized in template v2
This commit is contained in:
parent
1b9e2f58b7
commit
91ab93c03a
1 changed files with 6 additions and 0 deletions
|
|
@ -779,6 +779,12 @@ class TemplateParser_v2
|
|||
// Convert {{ double }} curly braces.
|
||||
$content = preg_replace_callback('#(?<!@)\{\{(.+?)\}\}#s', [$this, '_arrangeOutputFilters'], $content);
|
||||
|
||||
// Convert {!! unescaped !!} curly braces.
|
||||
$content = preg_replace_callback('#(?<!@)\{!!(.+?)!!\}#s', function($match) {
|
||||
$match[1] .= '|noescape';
|
||||
return $this->_arrangeOutputFilters($match);
|
||||
}, $content);
|
||||
|
||||
// Convert {single} curly braces.
|
||||
$content = preg_replace_callback('#(?<!\{)\{(?!\s)([^{}]+?)\}#', [$this, '_arrangeOutputFilters'], $content);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue