openskip-skip_embedded 0.9.0 → 0.9.1
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.
- data/lib/skip_embedded/helpers/ui.rb +7 -0
- data/lib/skip_embedded.rb +1 -1
- metadata +2 -2
@@ -1,6 +1,13 @@
|
|
1
1
|
module SkipEmbedded
|
2
2
|
module Helpers
|
3
3
|
module Ui
|
4
|
+
|
5
|
+
def sanitize_richtext(content)
|
6
|
+
allowed_tags = HTML::WhiteListSanitizer.allowed_tags.dup << "table" << "tbody" << "tr" << "th" << "td" << "caption"
|
7
|
+
allowed_attributes = HTML::WhiteListSanitizer.allowed_attributes.dup << "style" << "cellspacing" << "cellpadding" << "border" << "align" << "summary"
|
8
|
+
sanitize(content, :tags => allowed_tags, :attributes => allowed_attributes)
|
9
|
+
end
|
10
|
+
|
4
11
|
# From. http://github.com/mojombo/clippy/tree/master
|
5
12
|
def clippy(copy_text, bgcolor='#FFFFFF')
|
6
13
|
html = <<-EOF
|
data/lib/skip_embedded.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openskip-skip_embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MOROHASHI Kyosuke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-15 00:00:00 -07:00
|
13
13
|
default_executable: skip-gen
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|