This code is invalid because <script>it must not contain any other HTML tag.
:help syntastic shows how to disable syntax checking for a given file type:
let g:syntastic_mode_map={ 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html'] }
source
share