Replace DIVs with SPANs in inline_media templates