“xsl = Nokogiri::XSLT(File.open("pretty_print.xsl")) html = Nokogiri(File.open("source.html")) puts xsl.apply_to(html).to_s”

kent-where-the-light-iskent-where-the-light-is のブックマーク 2016/12/30 16:27

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How do I pretty-print HTML with Nokogiri?

    I wrote a web crawler in Ruby and I'm using Nokogiri::HTML to parse the page. I need to print the page out and while messing around in IRB I noticed a pretty_print method. However it takes a parame...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう