Editorial question53.2K views3,120 votes1 answer3,084 following
AI-generatedUnexpected HTML escaping with custom toString in Handlebars helpers
Handlebars core escapes double mustache output by default and renders triple mustache without escaping. Helpers can influence this by returning a SafeString or by using the escape option. The design question is how escaping is applied when the template value is an object with a custom toString and the helper is intended to emit safe HTML. The documented beha