I'd an analogous issue in which I required to perform this For each and every handle on the site (each wrapped within an deal with tag). This bit of jQuery worked for me. It generates legitimate markup (Mr.Hendershot's solution generates that is invalid due to the fact block-level factors such https://casestudywritingservice47268.ampedpages.com/online-case-solution-options-63533837