Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Server side pre-compile always escaping html content #66

Closed
pivotal-medici opened this Issue Jun 14, 2012 · 5 comments

Comments

Projects
None yet
4 participants

In development mode when using the triple handlebars syntax it allows html content to be rendered correctly, i.e.

// foo.handlebars
// content = '<span style="font-weight: bold;">bold</span>'
{{{content}}}

In development renders

<span style="font-weight: bold;">bold</span>

However in production renders

&lt;span style=&quot;font-weight: bold;&quot;&gt;bold&lt;/span&gt;

Turning off server side pre-compilation in application.rb fixes the problem

config.handlebars.precompile = false

xhh commented Aug 10, 2012

I also have this problem. Are you going to fix this?

Member

tchak commented Dec 26, 2012

Is this problem still happening to you guys sins the move to barber ?

Owner

stefanpenner commented May 24, 2013

this is likely fixed, will reopen if it is not.

We just upgraded to the latest gem (0.12.0) and it now works for us.
Cheers

-- AK/AB

Owner

stefanpenner commented Jun 18, 2013

@pivotal-medici
master should have some more fixes/improvements i suggest giving it a whirl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment