use node validator to remove scripts from input