updated the sanitzation so that DOM nodes that are introduced in text context are killed off