lib/metanorma/standoc/blocks.rb in metanorma-standoc-2.1.5 vs lib/metanorma/standoc/blocks.rb in metanorma-standoc-2.2.0
- old
+ new
@@ -236,14 +236,13 @@
fragment.to_xml(encoding: "US-ASCII", save_with:
Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
end
def pass(node)
- c = HTMLEntities.new
noko do |xml|
xml.passthrough **attr_code(formats:
node.attr("format") || "metanorma") do |p|
- p << c.encode(c.decode(node.content), :basic, :hexadecimal)
+ p << @c.encode(@c.decode(node.content), :basic, :hexadecimal)
end
end
end
end
end