module Loofah::HTML5::Scrub
def cdata_needs_escaping?(node)
Experimental RBS support (using type sampling data from the type_fusion
project).
def cdata_needs_escaping?: (Nokogiri::XML::Text node) -> nil
This signature was generated using 2 samples from 1 application.
def cdata_needs_escaping?(node) # Nokogiri's HTML4 parser on JRuby doesn't flag the child of a `style` tag as cdata, but it acts that way node.cdata? || (Nokogiri.jruby? && node.text? && node.parent.name == "style") end