Method: IsoDoc::HtmlFunction::Html#toHTML
- Defined in:
- lib/isodoc/html_function/postprocess.rb
#toHTML(result, filename) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/isodoc/html_function/postprocess.rb', line 15 def toHTML(result, filename) result = from_xhtml(html_cleanup(to_xhtml(result))) result = from_xhtml(move_images(resize_images(to_xhtml(result)))) result = html5(script_cdata(inject_script(result))) File.open(filename, "w:UTF-8") { |f| f.write(result) } end |