Class: XmlSig::XMLC14NWithComments

Inherits:
XMLC14NBase show all
Defined in:
lib/xml_sig/canonicalization_method.rb

Overview

Canonicalization algorithm for XML removing comments

Instance Method Summary collapse

Methods inherited from XMLC14NBase

#convert_linebreaks, #convert_to_utf8, #normalize_attribute_values

Instance Method Details

#process(content, charset = 'UTF-8') ⇒ Object



32
33
34
35
# File 'lib/xml_sig/canonicalization_method.rb', line 32

def process(content, charset='UTF-8')
  content = convert_to_utf8(content) unless charset == 'UTF-8'
  content
end