标签: html ruby hpricot
我该怎么办?如,
<span class="selected" id="hi">HELLO</span>
应该成为
<span id="hi">HELLO</span>
答案 0 :(得分:2)
span = Hpricot(some_html) % "span#hi" span.remove_attribute("class")