hpricot
remove <font> tag using hpricot
the html like this: \"[font color=\"#FF0000\"]test [font color=\"#FF0000\"]Hello world[/font][/font]\"[详细]
2023-01-02 01:03 分类:问答Ruby - Writing Hpricot data to a file
I am currently doing some XML parsing and I\'ve chosen to use开发者_如何学编程 Hpricot because of it\'s ease of use and syntax, however I am running into some problems. I need to write a piece of XML[详细]
2023-01-01 19:10 分类:问答hpricot using java?
I\'ve just noticed that a lot of hpricot code is written in java... alt 开发者_开发问答text http://img697.imageshack.us/img697/7447/picture2yw.png[详细]
2022-12-30 10:59 分类:问答How can I get Hpricot to play nice with HTML5?
I am using Hpricot to parse a theme 开发者_JS百科file. I have noticed, however, that if I feed a valid HTML5 document into Hpricot(), it auto-closes HTML5 tags (like <section>), and messes with[详细]
2022-12-30 09:54 分类:问答how to translate this hpricot code to nokogiri?
Hpricot(html).inner_text.gsub(\"\\r\",\" \").gsub(\"\\n\",\" \").split(\" 开发者_JAVA百科\").join(\" \")[详细]
2022-12-26 20:18 分类:问答hpricot throws exception when trying to parse url which has noscript tag
I use hpricot gem in ruby on rails to parse a webpage and extract the meta-tag contents. But if the website has a <noscrpit> tag just after the <head> tag it throws an exception[详细]
2022-12-26 17:19 分类:问答Hpricot error parsing special characters in URI
I\'m working on a ruby script to grab historical stock prices from Yahoo, using Hpricot to parse the pages. This is mostly straighforward: the url is \"http://finance.yahoo.com/q/hp?s=TickerSymbol\" F[详细]
2022-12-19 04:20 分类:问答how to remove event attribute from html using Hpricot?
I want to remove a list of dom events attribute from html? how to do this? like: before = \"<div onclick=\"abc\" >abc</div>\"[详细]
2022-12-15 06:23 分类:问答Searching Hpricot with Regex
I\'m trying to use Hpricot to get the value within a span with a class name I don\'t know. I know that it follows the pattern \"foo_[several digits]_bar\".[详细]
2022-12-15 04:00 分类:问答XPath and Hpricot -- works on some machines, not others?
The following hpricot code successfully extracts the STPeriods in the XML on two of my machines (Vista and an Ubuntu server) but fails on another Ubuntu laptop. All machines have Hpricot v0.82[详细]
2022-12-14 07:34 分类:问答