Method: EditorJs::Blocks::QuoteBlock#plain

Defined in:
lib/editor_js/blocks/quote_block.rb

#plainObject



57
58
59
60
61
62
63
# File 'lib/editor_js/blocks/quote_block.rb', line 57

def plain
  string = [
    Sanitize.fragment(data['text']).strip,
    Sanitize.fragment(data['caption']).strip
  ].join(', ')
  decode_html(string)
end