Lack of interest Templater filter replace does not work for pre-escaped data

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Kirby

Well-known member
This is somewhat in between a bug report and a feature request:

Templater filter replace does not work for pre escaped data, eg.

Code:
<xf:set var="$html">
some.
code.
here.
</xf:set>
<pre>{$html|replace('.', '')}</pre>
does not work while it might be nice if it did.
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
It's either a bug report or a feature request, not both.

The function has been designed to only work with strings or arrays so this is expected and I'll therefore move it to Suggestions to be considered for the future.
 
Fair enough, though as other filters like to_upper do work with pre-escaped data I felt this was inconsistent and reported it as a bug ;)
 
Back
Top Bottom