Ensure that on paste, <!-- --> codes do not appear inside any elements. Refs #1523.