P
Pen Ttt
there is a simple file /home/pt/test.html such as the following
<html>
<body>
<p>
  <br>
hallo,world
  <br />
</p> 
</body>
</html>
i want to extract the text "hallo,world" in the /home/pt/test.html with
nokogiri,how to write?
require 'rubygems'
require 'nokogiri'
html = '/home/pt/test.html'
doc = Nokogiri::HTML(html)
would you mind to finish it ?
<html>
<body>
<p>
  <br>
hallo,world
  <br />
</p> 
</body>
</html>
i want to extract the text "hallo,world" in the /home/pt/test.html with
nokogiri,how to write?
require 'rubygems'
require 'nokogiri'
html = '/home/pt/test.html'
doc = Nokogiri::HTML(html)
would you mind to finish it ?