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
{{ message }}
This repository has been archived by the owner on May 17, 2023. It is now read-only.
SafeString wraps the string in an object, which in turn causes ellipsis to break when it attempts to split that object.
I came upon this error while working on Instant Answers. I was changing the output of a custom handlebars helper to a SafeString. The helper is used as a subexpression to ellipsis, and marks up any markdown that might be in the string.
I suppose this might be a non issue, since I can just as easily return the string without using SafeString, and then wrap ellipsis in triple curly braces to make sure it's not escaped, but it seemed worthwhile to bring this to the attention of the repo maintainers.
The text was updated successfully, but these errors were encountered:
ellipsis
handlebars helper break when passed a handlebarsSafeString
, specifically on Line 233Error Message:
Uncaught Type Error: text.split is not a function
SafeString
wraps the string in an object, which in turn causesellipsis
to break when it attempts tosplit
that object.I came upon this error while working on Instant Answers. I was changing the output of a custom handlebars helper to a
SafeString
. The helper is used as a subexpression toellipsis
, and marks up any markdown that might be in the string.You can see the commit here: duckduckgo/zeroclickinfo-spice@03f5ddf
I suppose this might be a non issue, since I can just as easily return the string without using SafeString, and then wrap ellipsis in triple curly braces to make sure it's not escaped, but it seemed worthwhile to bring this to the attention of the repo maintainers.
The text was updated successfully, but these errors were encountered: