diff --git a/lib/docs/filters/cordova/clean_html_core.rb b/lib/docs/filters/cordova/clean_html_core.rb
new file mode 100644
index 00000000..c8625486
--- /dev/null
+++ b/lib/docs/filters/cordova/clean_html_core.rb
@@ -0,0 +1,11 @@
+module Docs
+ class Cordova
+ class CleanHtmlCoreFilter < Filter
+ def call
+ css('script', 'style', 'link').remove
+ xpath('descendant::comment()').remove
+ doc
+ end
+ end
+ end
+end
diff --git a/lib/docs/scrapers/cordova.rb b/lib/docs/scrapers/cordova.rb
index 9395a316..5cf0bf90 100644
--- a/lib/docs/scrapers/cordova.rb
+++ b/lib/docs/scrapers/cordova.rb
@@ -8,6 +8,7 @@ module Docs
code: 'https://github.com/apache/cordova'
}
+ html_filters.replace 'clean_html', 'cordova/clean_html_core'
html_filters.push 'cordova/entries', 'cordova/clean_html'
options[:container] = '.docs'