Disable HTML escaping in erb templates November 10, 2022 by Tarik Try using raw(somePost.content). Alternatively, somePost.content.html_safe.