How do I get innerHtml using Nokogiri gem

后端 未结 1 925
感情败类
感情败类 2021-01-11 22:40

e.g. i have html:

bla bla
bla bla

i need to

相关标签:
1条回答
  • 2021-01-11 23:29

    If you just need the string:

    doc.css("div.item:first").inner_html
    
    0 讨论(0)
提交回复
热议问题