i have an HTML, that should be transformed, having some tags replaced with another tags.
I don\'t know about these tags, because they will come from db. So, se
se
Like that:
doc.css("div.to-replace").each do |div| new_node = doc.create_element "span" new_node.inner_html = self.get_html_text div.replace new_node end