html-pipeline-linuxfr 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c82883511b9b07b3ad833693c7c9724358f25d9
4
- data.tar.gz: a4ec53810d2bb95168ef0f4f901e027c34e1ff04
3
+ metadata.gz: 7bba36c88d7f7a5bf2291252a602480b3312368e
4
+ data.tar.gz: d5b68ff4e83c47ed78784e81d4fcd8c641d29577
5
5
  SHA512:
6
- metadata.gz: 4de55f3dd8c5d90fdeef900aff669e2d603d5648ddc64704604e1d3fad7d9fbf378e3e012c4aada5258b56acaf22545d676833f110092a3b0aeed54ea52dd50f
7
- data.tar.gz: 5ee83a859f31924e334f02e2acbea4b6548fa20fa8d02c30a0696ff2d24f11020ad28e24edc52220fba0e2eb00a2d703d80fe39a201a4db1fa876e4356e5cba3
6
+ metadata.gz: b94df9202c254c6dec511cf21d98ea118b528fd86f6ed60e7a1a6d36058e73c76f2aaf849339228314805e2699ea1b4c3fd77601e9431574b30bb268c5d042c4
7
+ data.tar.gz: b85805870dbc071b10104a8079a455e9d8c9a9029ec1adc7f13c9f7033926754a04b99311eed9206868f1c52772a9b41409553bdc74b34c188e3d98962cbea36
@@ -22,9 +22,10 @@ module HTML
22
22
  result[:output].to_s
23
23
  end
24
24
 
25
- def self.sanitize(text)
26
- pipeline = HTML::Pipeline.new [HTML::Pipeline::SanitizationFilter], CONTEXT
27
- result = pipeline.call text
25
+ def self.sanitize(html)
26
+ return "" if html.nil?
27
+ pipeline = HTML::Pipeline.new [HTML::Pipeline::SanitizationFilter]
28
+ result = pipeline.call html
28
29
  result[:output].to_s
29
30
  end
30
31
  end
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Pipeline
3
- VERSION = "0.14.2"
3
+ VERSION = "0.14.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-pipeline-linuxfr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko