mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-22 02:11:26 +08:00
ignore script tag.
This commit is contained in:
@@ -1923,7 +1923,7 @@ function! s:get_text_from_html(buf)
|
||||
let buf = a:buf
|
||||
|
||||
let buf = strpart(buf, stridx(buf, '</head>'))
|
||||
let buf = substitute(buf, '<script>.\{-}</script>', '', 'g')
|
||||
let buf = substitute(buf, '<script[^>]*>.\{-}</script>', '', 'g')
|
||||
let res = ''
|
||||
let max = 0
|
||||
let mx = '\(<td[^>]\{-}>\)\|\(<\/td>\)\|\(<div[^>]\{-}>\)\|\(<\/div>\)'
|
||||
|
||||
Reference in New Issue
Block a user