Skip to content

html_safe not working? #171

Answered by joeldrapper
cmer asked this question in Help
Sep 19, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @cmer, you can get unescaped output using the raw method. Sorry this isn’t documented at the moment.

span { raw "  ·  " }

I wanted to avoid using .html_safe as it requires a String patch from Rails and it’s slower than passing the string to a raw method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cmer
Comment options

Answer selected by cmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants