Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该怎么做?例如,
<span class="selected" id="hi">HELLO</span>
应该成为
<span id="hi">HELLO</span>
span = Hpricot(some_html) % "span#hi" span.remove_attribute("class")