How to use Spanish characters in Handlebars templates

Posted by Jon Rose on Stack Overflow See other posts from Stack Overflow or by Jon Rose
Published on 2014-08-20T22:17:13Z Indexed on 2014/08/20 22:19 UTC
Read the original article Hit count: 243

Filed under:
|
|

I am wondering what the idiomatic way to render special language characters is using Handlebars.js templates. When I render the normal html I can use something like the Spanish lowercase e, &#233, and it renders as expected. When I pass the same text as a string to my Handlebars template I just see the characters &#233.

I have tried creating a Handlebars helper that used jquery to render the text using .html() then returning the .html() of the tmp element and I get the same results.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery