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
default (with escape disabled (!=)) THIS CAUSE ALWAYS WRONG output
div(content!= `{{ "${meta.description}" | t }}`)
If variable contains interpolated SINGLE quotes '
Code below will throw
SyntaxError: Unexpected token, when trying to parse `{{ 'te434343x'st' | t }}`
div(content=`{{ '${meta.description}' | t }}`)
div(content!=`{{ '${meta.description}' | t }}`)
If we use for code above DOUBLE quotes, error will disappear, but extraction output will be WRONG with unescaped output(!=).
div(content!=`{{ "${meta.description}" | t }}`)
Recap: If string has interpolated single quotes('), SyntaxError will occur for both (unescaped & escaped) assignments, if that wrapped also in a SINGLE quote!
USE double quote with escaped mode (=);
Example from docs with same quote interpolation
get me error
I would like to know why I am getting errorsfor this case.
Thanks
PS: I think solution, but problem from above is a bug.
My solution:
BUT
My solution not working as needed if we have 2 types of quotes
That extract
instead of
How to fix this issues?
Thanks!
The text was updated successfully, but these errors were encountered: