Class: Panda::Editor::Blocks::Paragraph
- Defined in:
- lib/panda/editor/blocks/paragraph.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Panda::Editor::Blocks::Base
Instance Method Details
#render ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/panda/editor/blocks/paragraph.rb', line 9 def render content = sanitize(data["text"]) return "" if content.blank? content = inject_footnotes(content) if data["footnotes"].present? html_safe("<p>#{content}</p>") end |