html-pipeline 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/html/pipeline/sanitization_filter.rb +30 -22
- data/lib/html/pipeline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d515d3d9dbc769c66a3ae66ef926e3830cca11c
|
4
|
+
data.tar.gz: 5fd602dedaedd903cb4743a7899dae8f5a5100cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13a51e0c20a6913765edf1fc8db5471f393e172eb23289df2c6274ac8c5164cda15a6fe8a84570ac2f85c0d783bb8d2f9d5e3c8573ce14864353bc6b7ed43a8
|
7
|
+
data.tar.gz: dea7bfd41ded48841ce1781338c7a1455c4548423d0d9231e2b1bab2477d850615caf2cad77d7ad02c205330d7d24a923fd3c59d9bedc88f65c78a2a3501fcd3
|
data/CHANGELOG.md
CHANGED
@@ -49,30 +49,38 @@ module HTML
|
|
49
49
|
),
|
50
50
|
:remove_contents => ['script'],
|
51
51
|
:attributes => {
|
52
|
-
'a'
|
53
|
-
'img'
|
54
|
-
'div'
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
52
|
+
'a' => ['href'],
|
53
|
+
'img' => ['src', 'longdesc'],
|
54
|
+
'div' => ['itemscope', 'itemtype'],
|
55
|
+
'blockquote' => ['cite'],
|
56
|
+
'del' => ['cite'],
|
57
|
+
'ins' => ['cite'],
|
58
|
+
'q' => ['cite'],
|
59
|
+
:all => ['abbr', 'accept', 'accept-charset',
|
60
|
+
'accesskey', 'action', 'align', 'alt', 'axis',
|
61
|
+
'border', 'cellpadding', 'cellspacing', 'char',
|
62
|
+
'charoff', 'charset', 'checked',
|
63
|
+
'clear', 'cols', 'colspan', 'color',
|
64
|
+
'compact', 'coords', 'datetime', 'dir',
|
65
|
+
'disabled', 'enctype', 'for', 'frame',
|
66
|
+
'headers', 'height', 'hreflang',
|
67
|
+
'hspace', 'ismap', 'label', 'lang',
|
68
|
+
'maxlength', 'media', 'method',
|
69
|
+
'multiple', 'name', 'nohref', 'noshade',
|
70
|
+
'nowrap', 'open', 'prompt', 'readonly', 'rel', 'rev',
|
71
|
+
'rows', 'rowspan', 'rules', 'scope',
|
72
|
+
'selected', 'shape', 'size', 'span',
|
73
|
+
'start', 'summary', 'tabindex', 'target',
|
74
|
+
'title', 'type', 'usemap', 'valign', 'value',
|
75
|
+
'vspace', 'width', 'itemprop']
|
72
76
|
},
|
73
77
|
:protocols => {
|
74
|
-
'a'
|
75
|
-
'
|
78
|
+
'a' => {'href' => ANCHOR_SCHEMES},
|
79
|
+
'blockquote' => {'cite' => ['http', 'https', :relative]},
|
80
|
+
'del' => {'cite' => ['http', 'https', :relative]},
|
81
|
+
'ins' => {'cite' => ['http', 'https', :relative]},
|
82
|
+
'q' => {'cite' => ['http', 'https', :relative]},
|
83
|
+
'img' => {
|
76
84
|
'src' => ['http', 'https', :relative],
|
77
85
|
'longdesc' => ['http', 'https', :relative]
|
78
86
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-09-
|
12
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|