Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML entities / special characters in form label tags

<%= f.label :recipient_email, "Friend&rsquo;s email address" %>

&rsquo; doesn't show up as the actual character. What's the correct way?

like image 652
Aen Tan Avatar asked Dec 21 '22 15:12

Aen Tan


1 Answers

<%= f.label :recipient_email, raw("Friend&rsquo;s email address") %>
like image 181
khelll Avatar answered Dec 24 '22 05:12

khelll