use span and change to outerHTML to fix some block element issues depending on the template