app/controllers/anoubis/data/convert.rb
##
# Convert value from database to table view for text type
Convert value from database to table view for text type
Convert value from database to table view for text type
def convert_db_to_table_value_text1(key, field, value)
        return { key => '', ('raw_'+key.to_s).to_sym => '' } if !value
        new_value = ERB::Util.html_escape(value).to_s.gsub(/(?:\n\r?|\r\n?)/, '<br/>')
        return { key => new_value, ('raw_'+key.to_s).to_sym => value }
      end
def convert_db_to_table_value_text1 ( key , field , value ) return { key => '' , ( 'raw_' + key . to_s ) . to_sym => '' } if ! value new_value = ERB :: Util . html_escape ( value ) . to_s . gsub ( / (?: \n \r ?| \r \n ?) / , '<br/>' ) return { key => new_value , ( 'raw_' + key . to_s ) . to_sym => value } end
Convert value from database to table view for text type
Convert value from database to table view for text type
key
<not_specific>
field
<not_specific>
value
<not_specific>