updated for version 7.0074
diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim
index 1d4135b..f03b54e 100644
--- a/runtime/syntax/2html.vim
+++ b/runtime/syntax/2html.vim
@@ -273,7 +273,7 @@
   let s:end = line("$")
 endif
 
-if has('folding')
+if has('folding') && !exists('html_ignore_folding')
   let s:foldfillchar = &fillchars[matchend(&fillchars, 'fold:')]
   if s:foldfillchar == ''
     let s:foldfillchar = '-'
@@ -327,7 +327,7 @@
     let s:new = ""
   endif
 
-  if has('folding') && foldclosed(s:lnum) > -1
+  if has('folding') && !exists('html_ignore_folding') && foldclosed(s:lnum) > -1
     "
     " This is the beginning of a folded block
     "