html_content = "<div style=\"padding: 0;\">
<blockquote><span edit=\"false\">test</span></blockquote>
</div>"
html_content.gsub!("<span edit=\"false\">", '')
html_content.gsub!(/<\/span><\/blockquote>/i, "</blockquote>")
html_content.gsub!(/blockquote>/i, "blockquote>")
# Result
# <div style="padding: 0;">
# <blockquote>test</blockquote>
# </div>
span
внутри blockquote
и весь текст внутри span
переместить в blockquote
родителя.