For example I have a html string:
<span class="no">1172</span><span class="r">case</span> primary_key_prefix_type
How to wrap every element which doesn’t have tag by Nokogiri like this:
<span class="no">1172</span><span class="r">case</span> <span>primary_key_prefix_type</span>
This doesn’t feel like the most elegant solution, but it works:
Edit: More examples: