Class: ModsDisplay::RecordHelper::MetadataScrubber
- Inherits:
-
Rails::Html::PermitScrubber
- Object
- Rails::Html::PermitScrubber
- ModsDisplay::RecordHelper::MetadataScrubber
- Defined in:
- app/helpers/mods_display/record_helper.rb
Instance Method Summary collapse
-
#scrub_node(node) ⇒ Object
Override the superclass to escape the non-permitted nodes.
Instance Method Details
#scrub_node(node) ⇒ Object
Override the superclass to escape the non-permitted nodes
97 98 99 100 |
# File 'app/helpers/mods_display/record_helper.rb', line 97 def scrub_node(node) node.add_next_sibling Nokogiri::XML::Text.new(node.to_s, node.document) node.remove end |