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 b42a2a4 commit b74e22eCopy full SHA for b74e22e
README.md
@@ -11,6 +11,17 @@ We use [HTMLKit](https://github.com/iabudiab/HTMLKit) to take the place of Nokog
11
12
Below is a copy of the original README file, until I'm able to flesh this one out more.
13
14
+But you can build a pipeline like this:
15
+
16
+```ruby
17
+pipeline = MotionHTMLPipeline::Pipeline.new [
18
+ MotionHTMLPipeline::Pipeline::HttpsFilter,
19
+ MotionHTMLPipeline::Pipeline::ImageMaxWidthFilter
20
+]
21
+result = pipeline.call("<a href='http://example.com/one.png'>link</a> <img src='one.png'>", {http_url: 'http://example.com'})
22
+result[:output].to_s
23
+```
24
25
---
26
# HTML::Pipeline
27
0 commit comments