Method: Qti::V2::Models::StimulusItem#body
- Defined in:
- lib/qti/v2/models/stimulus_item.rb
#body ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/qti/v2/models/stimulus_item.rb', line 5 def body @body ||= begin item_body_node = xpath_with_single_check('//html/body') node = item_body_node.dup # Filter undesired interaction nodes out of the list (need to make this a deep traversal) node.children.filter(INTERACTION_ELEMENTS_CSS).map(&:unlink) sanitize_content!(node.to_html) end end |