S
S
Sergei Safronov2014-04-28 22:57:17
Ruby on Rails
Sergei Safronov, 2014-04-28 22:57:17

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

here it is: (pictures)
1d0f17a141ce428b85196793fa4bd46a.pngccb21e6a016a46609dd67a1dcc7d8475.png

Can you please tell me how to make the tags display properly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2014-04-28
@zirexx

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 question

Ask a Question

731 491 924 answers to any question