stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.34k stars 221 forks source link

Issue with multiple parameters with one of them being a quote #209

Closed rounak closed 6 years ago

rounak commented 6 years ago

It seems like the argument parser breaks if I provide multiple parameters to a custom filter, with one of those parameters being a quote.

Example:

{{ string|replace:"""," " }}

Escaping the string doesn't seem to work either:

{{ string|replace:"\""," " }}

Nor does providing the double quote within a single quote:

{{ string|replace:'"'," " }}