Answer the question
In order to leave comments, you need to log in
Why are html tags not applied in Ruby on Rails?
Hello, I ran into a problem. It costs ActiveAdmin, the wysiwyg ActiveAdmin Editor
is attached to it.
After I edit the text, I send the form, it turns out
Answer the question
In order to leave comments, you need to log in
What result are you getting? Well, this is an activeadmin - an administration panel for everything that is stored in the database. And after vizivig, you get html code into the database. Here you will see the actual contents of the cell in the table.
Sanitize, HTMLEntities can be used to safely convert html tags to Rails. There are also built-in html_safe and h(string) helpers, but it all depends on what you need: what you want. so that ActiveAdmin would show you not real content, but converted to html ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question