Closed roya1v closed 4 months ago
@roya1v why not use \"
for an escaped quote?
@0xTim that was my initial idea. As far as I tried we don't distinguish between escaped and not-escaped quotes. I tried to dig deeper but couldn't find a place in leaf-kit to amend this behaviour. Correct me please if I'm wrong
Now that I think about it, two slashes might work, lmk if you would prefer that
Ah I see, I think the issue you're having is that Swift will automatically count the \
, whereas if it was created in a template directly \"
should work fine so I think \\
works in this case
Hey @0xTim sorry I don't know if you didn't see it or didn't have time to take a look. I've pushed the change to \\
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.51%. Comparing base (
f6a08a1
) to head (0d51e90
).
These changes are now available in 1.10.6
Allows escaped quotes in tag parameters so you can do something like
#myCustomTag("this \"thing\" is cool")
Solves #122