Frank
Frank

Reputation: 33

simple_format and embed's

I've tried searching the web for a solution for this but havent been able to find any way of combining this.

Im printing html from a wysiwyg editor and found the simple_format helper to print the HTML with paragraphs etc. The problem is that it strips embed tags from the code aswell.

Do any of you know a way to print content from a WYSIWYG that adds paragraphs, br's, strong/bold and keeps all media such as images, embed's, etc.

Thanks!

Upvotes: 0

Views: 755

Answers (1)

Frank
Frank

Reputation: 21

Incase anyone is interested i solved it with:

<%= simple_format(content.post_content, {}, {:sanitize => false}) %>

Upvotes: 2

Related Questions