fix error for crashed html tag in script tag