We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334188f commit f299b67Copy full SHA for f299b67
lib/html/pipeline/sanitization_filter.rb
@@ -1,8 +1,4 @@
1
-begin
2
- require "sanitize"
3
-rescue LoadError => _
4
- raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
5
-end
+HTML::Pipeline.require_dependency("sanitize", "SanitizationFilter")
6
7
module HTML
8
class Pipeline
0 commit comments