Skip to content

Commit d1753cf

Browse files
committed
add link to tests
1 parent b4e80e7 commit d1753cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ pipeline = HTMLPipeline.new \
197197
sanitization_config: nil
198198
```
199199

200+
For more examples of customizing the sanitization process to include the tags you want, check out [the tests](test/sanitization_filter_test.rb).
201+
200202
### NodeFilters
201203

202204
`NodeFilters`s can operate either on HTML elements or text nodes using CSS selectors. Each `NodeFilter` must define a method named `selector` which provides an instance of `Selma::Selector`. If elements are being manipulated, `handle_element` must be defined, taking one argument, `element`; if text nodes are being manipulated, `handle_text_chunk` must be defined, taking one argument, `text_chunk`. `@config`, and `@result` are available to use, and any changes made to these ivars are passed on to the next filter.

0 commit comments

Comments
 (0)