DEV Community

Raghu Betina
Raghu Betina

Posted on

TIL: ERB verbatim tag

TIL about the new-ish "verbatim" ERB tag: <%==

https://guides.rubyonrails.org/active_support_core_extensions.html#safe-strings

<%= raw something %>
Enter fullscreen mode Exit fullscreen mode

is equivalent to:

<%== something %>
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
jamey_86 profile image
Jamey

Nice posting! Looking forward to talking to you