html_spellchecker 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/html_spellchecker.rb +1 -1
- metadata +3 -3
data/lib/html_spellchecker.rb
CHANGED
@@ -56,7 +56,7 @@ class Nokogiri::XML::Text
|
|
56
56
|
|
57
57
|
def spellcheck(dict)
|
58
58
|
to_xhtml(:encoding => 'UTF-8').gsub(WORDS_REGEXP) do |word|
|
59
|
-
dict.check(word) ? word : "<
|
59
|
+
dict.check(word) ? word : "<span class=\"misspelled\">#{word}</span>"
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html_spellchecker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bruno Michel
|