Move XSS string test to update() function to handle setText, see https://github.com/phetsims/scenery/issues/528
Move XSS string test to update() function to handle setText, see https://github.com/phetsims/scenery/issues/528

phetsims/scenery-phet,phetsims/scenery-phet,phetsims/scenery-phet