You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Apologies if this should be common knowledge but I couldn't find any working solutions.
Currently my templates are used as follows - {{translate 1. 25< 3' 25" 20.05 "My string to pass."}}
And it works fine, but when the final string argument contains multiple double quotes like so - {{translate 1. 25< 3' 25" 20.05 "My string with 25" several double" quotes."}}
Please don't mind the nonsense verbiage. The idea is that the user would like to include double quotes within that last argument.
This results in the helper's arguments array getting UndefinedBindingResults or values for each word or however the internal double quotes create new strings. Sometimes it'll even include the next template based on how the double quotes are laid out so the final rendered view would be missing some entries.
How can I allow the user to use multiple double quotes within that last string parameter?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Apologies if this should be common knowledge but I couldn't find any working solutions.
Currently my templates are used as follows -
{{translate 1. 25< 3' 25" 20.05 "My string to pass."}}
And it works fine, but when the final string argument contains multiple double quotes like so -
{{translate 1. 25< 3' 25" 20.05 "My string with 25" several double" quotes."}}
Please don't mind the nonsense verbiage. The idea is that the user would like to include double quotes within that last argument.
This results in the helper's arguments array getting UndefinedBindingResults or values for each word or however the internal double quotes create new strings. Sometimes it'll even include the next template based on how the double quotes are laid out so the final rendered view would be missing some entries.
How can I allow the user to use multiple double quotes within that last string parameter?
Beta Was this translation helpful? Give feedback.
All reactions