Module: ArticleJSON::Export::Common::HTML::Elements::Paragraph
- Included in:
- AMP::Elements::Paragraph, FacebookInstantArticle::Elements::Paragraph, HTML::Elements::Paragraph
- Defined in:
- lib/article_json/export/common/html/elements/paragraph.rb
Instance Method Summary collapse
-
#export ⇒ Nokogiri::XML::NodeSet
Generate the paragraph node with its containing text elements.
Instance Method Details
#export ⇒ Nokogiri::XML::NodeSet
Generate the paragraph node with its containing text elements
9 10 11 12 13 14 15 |
# File 'lib/article_json/export/common/html/elements/paragraph.rb', line 9 def export create_element(:p) do |p| @element.content.each do |child_element| p.add_child(text_exporter.new(child_element).export) end end end |