Update a tag with new markup