diff --git a/config/initializers/better_html.rb b/config/initializers/better_html.rb
index a5c78c62e1..3c05a67a39 100644
--- a/config/initializers/better_html.rb
+++ b/config/initializers/better_html.rb
@@ -1 +1,5 @@
BetterHtml.config = BetterHtml::Config.new(YAML.safe_load(File.read(Rails.root.join(".better-html.yml"))))
+
+BetterHtml.configure do |config|
+ config.template_exclusion_filter = Proc.new { |filename| !filename.start_with?(Rails.root.to_s) }
+end