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
{'12"45"'|truncate:6} is printed as 12&... because it acts on the expanded HTMl entities like " {'12"45"'|truncate:6|escapeHtml} forces ordering and is printed as 12"45" (the HTML source is 12"45")
I can't see the usefulness of acting on the escaped HTML and it causes artifacts (like ampersands) to appear in your output HTML, so the latter behavior seems more sane by default.
The text was updated successfully, but these errors were encountered:
I've been bitten by this too, would love to see a fix. Thanks for the workaround, the one I thought of was clunkier (assign the truncated, non-escaped output to a variable first).
Support for IfNodes as traditional conditionals and ternary expressions where possible.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=86653446
{'12"45"'|truncate:6}
is printed as12&...
because it acts on the expanded HTMl entities like"
{'12"45"'|truncate:6|escapeHtml}
forces ordering and is printed as12"45"
(the HTML source is12"45"
)I can't see the usefulness of acting on the escaped HTML and it causes artifacts (like ampersands) to appear in your output HTML, so the latter behavior seems more sane by default.
The text was updated successfully, but these errors were encountered: