jumar
jumar

Reputation: 309

Sinatra / HAML - how can I use html_safe functionality?

I am getting this error.

This is the line causing the problem; I'm trying to display html entities.

%p= html_escape("&#10004")

I understand html_safe is not available in Sinatra. What can I use to replace that functionality?

Upvotes: 1

Views: 696

Answers (1)

three
three

Reputation: 8478

From the Haml docs (http://haml.info/docs/yardoc/file.REFERENCE.html)

You can do this:

&= "&#10004"

Upvotes: 1

Related Questions