Skip to content

Commit 889fc51

Browse files
authored
Merge pull request #150 from vfonic/patch-1
Docs: Fix `template_exclusion_filter` explanation
2 parents 5509e6c + f6d3b54 commit 889fc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Available configuration options are:
5656
by `SafeErbTester` when determining whether or not a given attribute value will be eval'ed as javascript.
5757
Defaults to `[/\Aon/i]` (matches `onclick` for example).
5858
* `template_exclusion_filter`: This is called when determining whether to apply runtime checks on a `.erb` template.
59-
When this `Proc` returns false, no safety checks are applied and parsing is done using the default Rails erubi engine.
59+
When this `Proc` returns true, no safety checks are applied and parsing is done using the default Rails erubi engine.
6060
For example, to exclude erb templates provided by libraries, use: `Proc.new { |filename| !filename.start_with?(Rails.root.to_s) }`.
6161
Defaults to `nil` (all html.erb templates are parsed).
6262

0 commit comments

Comments
 (0)