Robert Mela asked:

Stop HTML markup from being stripped from Og text fields

Tags: 0.50

Is there a simple way to get the Og admin part to stop stripping HTML markup from submitted text fields?

(1 attempts)

Robert Mela answered:

Add this to the text attribute definition in your Og object:

attr_accessor :body, String, :control => :textarea, :unfiltered => true

The code that strips the HTML from strings before assigning them to an Og attribute is in raw/lib/raw/util/attr.rb:

if anno[:class] == String and anno[:unfiltered] != true
    # html filter all strings by default.
    prop_value = prop_value.html_filter
  end

Rating: 5