tags:

views:

24

answers:

1

How do I do it? E.g.,

<span class="selected" id="hi">HELLO</span>

should become

<span id="hi">HELLO</span>
+2  A: 
span = Hpricot(some_html) % "span#hi"
span.remove_attribute("class")
Todd Yandell