html2text 0.3.1 → 0.4.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 +13 -0
- data/README.md +5 -5
- data/lib/html2text/version.rb +3 -1
- data/lib/html2text.rb +108 -106
- metadata +65 -110
- data/spec/examples/anchors.html +0 -12
- data/spec/examples/anchors.txt +0 -5
- data/spec/examples/basic.html +0 -21
- data/spec/examples/basic.txt +0 -15
- data/spec/examples/dom-processing.html +0 -8
- data/spec/examples/dom-processing.txt +0 -1
- data/spec/examples/empty.html +0 -0
- data/spec/examples/empty.txt +0 -0
- data/spec/examples/full_email.html +0 -220
- data/spec/examples/full_email.txt +0 -54
- data/spec/examples/huge-msoffice.html +0 -1
- data/spec/examples/huge-msoffice.txt +0 -25872
- data/spec/examples/images.html +0 -54
- data/spec/examples/images.txt +0 -27
- data/spec/examples/invalid.html +0 -4
- data/spec/examples/invalid.txt +0 -1
- data/spec/examples/lists.html +0 -24
- data/spec/examples/lists.txt +0 -17
- data/spec/examples/more-anchors.html +0 -14
- data/spec/examples/more-anchors.txt +0 -7
- data/spec/examples/msoffice.html +0 -1
- data/spec/examples/msoffice.txt +0 -12
- data/spec/examples/nbsp.html +0 -1
- data/spec/examples/nbsp.txt +0 -1
- data/spec/examples/nested-divs.html +0 -17
- data/spec/examples/nested-divs.txt +0 -12
- data/spec/examples/newlines.html +0 -50
- data/spec/examples/newlines.txt +0 -35
- data/spec/examples/non-breaking-spaces.html +0 -1
- data/spec/examples/non-breaking-spaces.txt +0 -1
- data/spec/examples/pre.html +0 -10
- data/spec/examples/pre.txt +0 -8
- data/spec/examples/table.html +0 -53
- data/spec/examples/table.txt +0 -7
- data/spec/examples/test3.html +0 -1
- data/spec/examples/test3.txt +0 -2
- data/spec/examples/test4.html +0 -1
- data/spec/examples/test4.txt +0 -5
- data/spec/examples/utf8-example.html +0 -4
- data/spec/examples/utf8-example.txt +0 -2
- data/spec/examples/windows-1252-example.html +0 -4
- data/spec/examples/windows-1252-example.txt +0 -2
- data/spec/examples/zero-width-non-joiners.html +0 -1
- data/spec/examples/zero-width-non-joiners.txt +0 -1
- data/spec/examples_spec.rb +0 -41
- data/spec/html2text_spec.rb +0 -58
- data/spec/spec_helper.rb +0 -4
metadata
CHANGED
@@ -1,29 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jevon Wright
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler-audit
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: colorize
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
25
59
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
27
75
|
- !ruby/object:Gem::Dependency
|
28
76
|
name: rspec
|
29
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +101,7 @@ dependencies:
|
|
53
101
|
- !ruby/object:Gem::Version
|
54
102
|
version: '0'
|
55
103
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
104
|
+
name: rubocop
|
57
105
|
requirement: !ruby/object:Gem::Requirement
|
58
106
|
requirements:
|
59
107
|
- - ">="
|
@@ -67,7 +115,7 @@ dependencies:
|
|
67
115
|
- !ruby/object:Gem::Version
|
68
116
|
version: '0'
|
69
117
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
118
|
+
name: rubocop-performance
|
71
119
|
requirement: !ruby/object:Gem::Requirement
|
72
120
|
requirements:
|
73
121
|
- - ">="
|
@@ -81,7 +129,7 @@ dependencies:
|
|
81
129
|
- !ruby/object:Gem::Version
|
82
130
|
version: '0'
|
83
131
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
132
|
+
name: rubocop-rake
|
85
133
|
requirement: !ruby/object:Gem::Requirement
|
86
134
|
requirements:
|
87
135
|
- - ">="
|
@@ -106,58 +154,12 @@ files:
|
|
106
154
|
- README.md
|
107
155
|
- lib/html2text.rb
|
108
156
|
- lib/html2text/version.rb
|
109
|
-
- spec/examples/anchors.html
|
110
|
-
- spec/examples/anchors.txt
|
111
|
-
- spec/examples/basic.html
|
112
|
-
- spec/examples/basic.txt
|
113
|
-
- spec/examples/dom-processing.html
|
114
|
-
- spec/examples/dom-processing.txt
|
115
|
-
- spec/examples/empty.html
|
116
|
-
- spec/examples/empty.txt
|
117
|
-
- spec/examples/full_email.html
|
118
|
-
- spec/examples/full_email.txt
|
119
|
-
- spec/examples/huge-msoffice.html
|
120
|
-
- spec/examples/huge-msoffice.txt
|
121
|
-
- spec/examples/images.html
|
122
|
-
- spec/examples/images.txt
|
123
|
-
- spec/examples/invalid.html
|
124
|
-
- spec/examples/invalid.txt
|
125
|
-
- spec/examples/lists.html
|
126
|
-
- spec/examples/lists.txt
|
127
|
-
- spec/examples/more-anchors.html
|
128
|
-
- spec/examples/more-anchors.txt
|
129
|
-
- spec/examples/msoffice.html
|
130
|
-
- spec/examples/msoffice.txt
|
131
|
-
- spec/examples/nbsp.html
|
132
|
-
- spec/examples/nbsp.txt
|
133
|
-
- spec/examples/nested-divs.html
|
134
|
-
- spec/examples/nested-divs.txt
|
135
|
-
- spec/examples/newlines.html
|
136
|
-
- spec/examples/newlines.txt
|
137
|
-
- spec/examples/non-breaking-spaces.html
|
138
|
-
- spec/examples/non-breaking-spaces.txt
|
139
|
-
- spec/examples/pre.html
|
140
|
-
- spec/examples/pre.txt
|
141
|
-
- spec/examples/table.html
|
142
|
-
- spec/examples/table.txt
|
143
|
-
- spec/examples/test3.html
|
144
|
-
- spec/examples/test3.txt
|
145
|
-
- spec/examples/test4.html
|
146
|
-
- spec/examples/test4.txt
|
147
|
-
- spec/examples/utf8-example.html
|
148
|
-
- spec/examples/utf8-example.txt
|
149
|
-
- spec/examples/windows-1252-example.html
|
150
|
-
- spec/examples/windows-1252-example.txt
|
151
|
-
- spec/examples/zero-width-non-joiners.html
|
152
|
-
- spec/examples/zero-width-non-joiners.txt
|
153
|
-
- spec/examples_spec.rb
|
154
|
-
- spec/html2text_spec.rb
|
155
|
-
- spec/spec_helper.rb
|
156
157
|
homepage: https://github.com/soundasleep/html2text_ruby
|
157
158
|
licenses:
|
158
159
|
- MIT
|
159
|
-
metadata:
|
160
|
-
|
160
|
+
metadata:
|
161
|
+
rubygems_mfa_required: 'true'
|
162
|
+
post_install_message:
|
161
163
|
rdoc_options: []
|
162
164
|
require_paths:
|
163
165
|
- lib
|
@@ -165,62 +167,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
167
|
requirements:
|
166
168
|
- - ">="
|
167
169
|
- !ruby/object:Gem::Version
|
168
|
-
version: '0'
|
170
|
+
version: '3.0'
|
169
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
172
|
requirements:
|
171
173
|
- - ">="
|
172
174
|
- !ruby/object:Gem::Version
|
173
175
|
version: '0'
|
174
176
|
requirements: []
|
175
|
-
rubygems_version: 3.
|
176
|
-
signing_key:
|
177
|
+
rubygems_version: 3.5.9
|
178
|
+
signing_key:
|
177
179
|
specification_version: 4
|
178
180
|
summary: Convert HTML into plain text.
|
179
|
-
test_files:
|
180
|
-
- spec/examples/nested-divs.html
|
181
|
-
- spec/examples/pre.html
|
182
|
-
- spec/examples/invalid.html
|
183
|
-
- spec/examples/empty.html
|
184
|
-
- spec/examples/table.html
|
185
|
-
- spec/examples/basic.html
|
186
|
-
- spec/examples/nbsp.html
|
187
|
-
- spec/examples/utf8-example.html
|
188
|
-
- spec/examples/newlines.txt
|
189
|
-
- spec/examples/full_email.txt
|
190
|
-
- spec/examples/msoffice.html
|
191
|
-
- spec/examples/zero-width-non-joiners.txt
|
192
|
-
- spec/examples/anchors.html
|
193
|
-
- spec/examples/nbsp.txt
|
194
|
-
- spec/examples/zero-width-non-joiners.html
|
195
|
-
- spec/examples/test3.html
|
196
|
-
- spec/examples/test4.txt
|
197
|
-
- spec/examples/huge-msoffice.txt
|
198
|
-
- spec/examples/full_email.html
|
199
|
-
- spec/examples/utf8-example.txt
|
200
|
-
- spec/examples/table.txt
|
201
|
-
- spec/examples/huge-msoffice.html
|
202
|
-
- spec/examples/more-anchors.txt
|
203
|
-
- spec/examples/newlines.html
|
204
|
-
- spec/examples/test4.html
|
205
|
-
- spec/examples/basic.txt
|
206
|
-
- spec/examples/lists.html
|
207
|
-
- spec/examples/nested-divs.txt
|
208
|
-
- spec/examples/non-breaking-spaces.html
|
209
|
-
- spec/examples/invalid.txt
|
210
|
-
- spec/examples/empty.txt
|
211
|
-
- spec/examples/images.txt
|
212
|
-
- spec/examples/non-breaking-spaces.txt
|
213
|
-
- spec/examples/dom-processing.txt
|
214
|
-
- spec/examples/test3.txt
|
215
|
-
- spec/examples/dom-processing.html
|
216
|
-
- spec/examples/lists.txt
|
217
|
-
- spec/examples/pre.txt
|
218
|
-
- spec/examples/anchors.txt
|
219
|
-
- spec/examples/more-anchors.html
|
220
|
-
- spec/examples/windows-1252-example.txt
|
221
|
-
- spec/examples/images.html
|
222
|
-
- spec/examples/msoffice.txt
|
223
|
-
- spec/examples/windows-1252-example.html
|
224
|
-
- spec/examples_spec.rb
|
225
|
-
- spec/html2text_spec.rb
|
226
|
-
- spec/spec_helper.rb
|
181
|
+
test_files: []
|
data/spec/examples/anchors.html
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
A document without any HTML open/closing tags.
|
2
|
-
|
3
|
-
<hr>
|
4
|
-
|
5
|
-
We try and use the representation given by common browsers of the
|
6
|
-
HTML document, so that it looks similar when converted to plain text.
|
7
|
-
|
8
|
-
<a href="http://foo.com">visit foo.com</a> - or <a href="http://www.foo.com">http://www.foo.com</a>
|
9
|
-
|
10
|
-
<a href="http://foo.com" title="a link with a title">link</a>
|
11
|
-
|
12
|
-
<h2><a name="anchor">An anchor which will not appear</a></h2>
|
data/spec/examples/anchors.txt
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
A document without any HTML open/closing tags.
|
2
|
-
---------------------------------------------------------------
|
3
|
-
We try and use the representation given by common browsers of the HTML document, so that it looks similar when converted to plain text. [visit foo.com](http://foo.com) - or http://www.foo.com [link](http://foo.com)
|
4
|
-
|
5
|
-
[An anchor which will not appear]
|
data/spec/examples/basic.html
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<title>Ignored Title</title>
|
3
|
-
<body>
|
4
|
-
<h1>Hello, World!</h1>
|
5
|
-
|
6
|
-
<p>This is some e-mail content.
|
7
|
-
Even though it has whitespace and newlines, the e-mail converter
|
8
|
-
will handle it correctly.
|
9
|
-
|
10
|
-
<p>Even mismatched tags.</p>
|
11
|
-
|
12
|
-
<div>A div</div>
|
13
|
-
<div>Another div</div>
|
14
|
-
<div>A div<div>within a div</div></div>
|
15
|
-
|
16
|
-
<p>Another line<br />Yet another line</p>
|
17
|
-
|
18
|
-
<a href="http://foo.com">A link</a>
|
19
|
-
|
20
|
-
</body>
|
21
|
-
</html>
|
data/spec/examples/basic.txt
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
Hello, World!
|
2
|
-
|
3
|
-
This is some e-mail content. Even though it has whitespace and newlines, the e-mail converter will handle it correctly.
|
4
|
-
|
5
|
-
Even mismatched tags.
|
6
|
-
|
7
|
-
A div
|
8
|
-
Another div
|
9
|
-
A div
|
10
|
-
within a div
|
11
|
-
|
12
|
-
Another line
|
13
|
-
Yet another line
|
14
|
-
|
15
|
-
[A link](http://foo.com)
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello
|
data/spec/examples/empty.html
DELETED
File without changes
|
data/spec/examples/empty.txt
DELETED
File without changes
|
@@ -1,220 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<meta name="viewport" content="width=680">
|
6
|
-
</head>
|
7
|
-
<body class="cat-update-email cat-update" style="background: #ffccee; color: blue; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; text-align: center" bgcolor="#ffccee">
|
8
|
-
<style type="text/css">
|
9
|
-
body.cat-update-email {
|
10
|
-
margin: 0; padding: 0; background: #ffccee; color: blue; text-align: center;
|
11
|
-
}
|
12
|
-
body.cat-update-email {
|
13
|
-
font-size: 12px; font-family: Times New Roman; font-weight: normal;
|
14
|
-
}
|
15
|
-
body.cat-update-email th {
|
16
|
-
font-size: 12px; font-family: Times New Roman; font-weight: normal;
|
17
|
-
}
|
18
|
-
body.cat-update-email td {
|
19
|
-
font-size: 12px; font-family: Times New Roman; font-weight: normal;
|
20
|
-
}
|
21
|
-
</style>
|
22
|
-
<table class="header-wrapper" style="border-spacing: 0; border: none; margin: 0; width: 100%">
|
23
|
-
<tr>
|
24
|
-
<td class="header" style="background: none; color: #999; font-family: Times New Roman; font-size: 12px; font-weight: normal; padding: 15px 0">
|
25
|
-
<table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; padding: 0 20px; width: 640px">
|
26
|
-
<tr>
|
27
|
-
<th style="font-family: Times New Roman; font-size: 12px; font-weight: normal">
|
28
|
-
<a class="logo" href="http://localhost/home" style="color: red; text-decoration: none">
|
29
|
-
<img border="0" height="32" src="test.png" width="200" style="display: block">
|
30
|
-
</a> </th>
|
31
|
-
<td class="account-number" style="color: white; font-family: Times New Roman; font-size: 12px; font-weight: normal; text-align: right" align="right">
|
32
|
-
16 December 2015<br>
|
33
|
-
Account 123
|
34
|
-
</td>
|
35
|
-
</tr>
|
36
|
-
</table>
|
37
|
-
</td>
|
38
|
-
</tr>
|
39
|
-
</table>
|
40
|
-
|
41
|
-
<table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
|
42
|
-
<tr>
|
43
|
-
<td class="salutation section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
|
44
|
-
<h1 class="user_greeting" style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0 0 1em">
|
45
|
-
Hi Susan
|
46
|
-
</h1>
|
47
|
-
<p class="message" style="font-size: 1.5em; line-height: 1.2; margin: 0">
|
48
|
-
Here is your cat report.
|
49
|
-
</p>
|
50
|
-
|
51
|
-
</td>
|
52
|
-
</tr>
|
53
|
-
</table>
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
|
59
|
-
<tr>
|
60
|
-
<td class="balance section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
|
61
|
-
<div class="account-status-heading" style="font-size: 2.5em; line-height: 1em; padding: 30px 20px; text-align: center" align="center">You have found <span class="status-cats-negative" style="color: #df0000">5 cats</span> less than anyone else</div>
|
62
|
-
|
63
|
-
<div id="cat-update-action-buttons">
|
64
|
-
<div id="buy-button" style="text-align: center" align="center">
|
65
|
-
<a class="btn-alert" href="http://localhost/cats" id="buy-cats-button" style="-moz-appearance: none; -webkit-appearance: none; background: #DF0000; border-radius: 3px; border: 11px solid #df0000; color: #fff; cursor: pointer; display: block; font-size: 16px; height: 16px; line-height: 16px; margin: 0 auto; text-decoration: none; transition: background-color .15s; width: 120px">Find more cats</a>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</td>
|
69
|
-
</tr>
|
70
|
-
</table>
|
71
|
-
|
72
|
-
<table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
|
73
|
-
<tr>
|
74
|
-
<td class="cats section" id="cats" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
|
75
|
-
<div class="cats-usage">
|
76
|
-
<h2 style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0">Down the road</h2>
|
77
|
-
<p class="fine-print" style="margin: 0">Across the hall</p>
|
78
|
-
|
79
|
-
<h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Your achievements</h3>
|
80
|
-
<table class="current-usage with-icon-left" style="border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; margin-top: 20px; width: 100%">
|
81
|
-
<tr>
|
82
|
-
<th style="border: none; font-family: Times New Roman; font-size: 14px; font-weight: bold; margin: 0; padding: 0; text-align: left; vertical-align: middle; width: 50px" align="left" valign="middle"><img src="test.png"></th>
|
83
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top">
|
84
|
-
<div class="top">You're currently finding about</div>
|
85
|
-
<div class="large" style="color: black; font-size: 18px; padding: 4px 0">12 cats</div>
|
86
|
-
<div class="bottom">per day</div>
|
87
|
-
</td>
|
88
|
-
</tr>
|
89
|
-
<tr><td colspan="2" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top"> </td></tr>
|
90
|
-
<tr>
|
91
|
-
<td colspan="2" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top"><img alt="Number of cats found" src="test.png"></td>
|
92
|
-
</tr>
|
93
|
-
</table>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
<div class="summary">
|
98
|
-
<hr class="fine-print" style="border-bottom-color: #eee; border-bottom-style: solid; border-width: 0 0 1px; margin: 20px 0">
|
99
|
-
|
100
|
-
<h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Your last cat was found two days ago.</h3>
|
101
|
-
<p class="fine-print" style="margin: 0">One type of cat is a kitten.</p>
|
102
|
-
|
103
|
-
<table class="readings" style="border-collapse: collapse; border-spacing: 0; margin: 10px 0; width: 100%">
|
104
|
-
<tr style="color: #BD236C">
|
105
|
-
<td class="left-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 5%">
|
106
|
-
<img src="test.png" style="padding-top: 10px">
|
107
|
-
</td>
|
108
|
-
<td class="center-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 60%">
|
109
|
-
<h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Special account <span class="nickname" style="font-size: 12px"></span> <span class="fine-print">A1</span>
|
110
|
-
</h3>
|
111
|
-
</td>
|
112
|
-
<td class="right-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 20%">
|
113
|
-
<h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">12.345</h3>
|
114
|
-
</td>
|
115
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0"></td>
|
116
|
-
</tr>
|
117
|
-
</table>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</td>
|
122
|
-
</tr>
|
123
|
-
</table>
|
124
|
-
|
125
|
-
<div class="banner" style="margin: 0 auto 20px; padding: 10px; text-align: center; width: 640px" align="center">
|
126
|
-
<a href="http://localhost/logout" style="color: red; text-decoration: none">
|
127
|
-
<img alt="" border="0" height="177" src="http://localhost/photo1.png" width="600">
|
128
|
-
</a>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
<table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
|
132
|
-
<tr>
|
133
|
-
<td class="tips section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
|
134
|
-
<table style="border-collapse: collapse; border-spacing: 0; width: 100%">
|
135
|
-
<tr>
|
136
|
-
<td colspan="3" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><h2 style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0 0 10px">How can you find more cats?</h2></td>
|
137
|
-
</tr>
|
138
|
-
|
139
|
-
<tr class="icon">
|
140
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo1.png" width="40"></td>
|
141
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo2.png" width="40"></td>
|
142
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo3.png" width="40"></td>
|
143
|
-
</tr>
|
144
|
-
|
145
|
-
<tr class="subtitle">
|
146
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Look in trash cans</h3></td>
|
147
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Start meowing</h3></td>
|
148
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Eat cat food</h3></td>
|
149
|
-
</tr>
|
150
|
-
|
151
|
-
<tr class="body" style="color: green">
|
152
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">Some cats like to hang out in trash cans. Some cats do not.</td>
|
153
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">Some cats are attracted to similar tones.</td>
|
154
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">So one day your tears may smell like cat food, attracting more cats.</td>
|
155
|
-
</tr>
|
156
|
-
|
157
|
-
<tr class="image">
|
158
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">
|
159
|
-
<a href="https://localhost/about" style="color: red; text-decoration: none">
|
160
|
-
<img border="0" height="130" src="http://localhost/photo1.png" style="display: block; margin: 10px 0" width="165">
|
161
|
-
</a>
|
162
|
-
</td>
|
163
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
|
164
|
-
<a href="https://localhost/about" style="color: red; text-decoration: none">
|
165
|
-
<img border="0" height="130" src="http://localhost/photo2.png" style="display: block; margin: 10px 0" width="165">
|
166
|
-
</a>
|
167
|
-
</td>
|
168
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
|
169
|
-
<a href="https://localhost/about" style="color: red; text-decoration: none">
|
170
|
-
<img border="0" height="130" src="http://localhost/photo3.png" style="display: block; margin: 10px 0" width="165">
|
171
|
-
</a>
|
172
|
-
</td>
|
173
|
-
</tr>
|
174
|
-
|
175
|
-
<tr class="tips-footer" style="color: green">
|
176
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">
|
177
|
-
<a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Cats are great.</a>
|
178
|
-
</td>
|
179
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
|
180
|
-
<a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Find more cats.</a>
|
181
|
-
</td>
|
182
|
-
<td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
|
183
|
-
<a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Do more things.</a>
|
184
|
-
</td>
|
185
|
-
</tr>
|
186
|
-
</table>
|
187
|
-
</td>
|
188
|
-
</tr>
|
189
|
-
</table>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
<table class="footer-wrapper" style="margin: 0 auto 20px">
|
196
|
-
<tr>
|
197
|
-
<td class="footer" style="color: #9B9B9B; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 4em; text-align: left; width: 600px" align="left">
|
198
|
-
<h3 style="font-family: Times New Roman; font-size: 1.2; font-weight: normal; line-height: 2em; margin: 0">
|
199
|
-
<a href="http://localhost/contact" style="color: red; text-decoration: none">Contact us</a>
|
200
|
-
</h3>
|
201
|
-
<p style="margin: 0 0 1em">
|
202
|
-
cats@cats.com<br>
|
203
|
-
Monday and Friday
|
204
|
-
</p>
|
205
|
-
|
206
|
-
<p style="margin: 0 0 1em"><a href="https://github.com/soundasleep/html2text" style="color: red; text-decoration: none"><img align="absmiddle" height="26" src="test.png" width="26"></a>
|
207
|
-
<a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none"><img align="absmiddle" height="26" src="test.png" width="26"></a>
|
208
|
-
</p>
|
209
|
-
|
210
|
-
<p class="message no-web-display" style="margin: 0">Having trouble seeing this email?
|
211
|
-
<a href="http://localhost/view_it_online" style="color: red; text-decoration: none">View it online</a>.
|
212
|
-
</p>
|
213
|
-
|
214
|
-
</td>
|
215
|
-
</tr>
|
216
|
-
</table>
|
217
|
-
<script async type="text/javascript" id="profiler" src="/profiler.js" data-version="1.0"></script>
|
218
|
-
</body>
|
219
|
-
</html>
|
220
|
-
|
@@ -1,54 +0,0 @@
|
|
1
|
-
http://localhost/home 16 December 2015
|
2
|
-
Account 123
|
3
|
-
|
4
|
-
Hi Susan
|
5
|
-
|
6
|
-
Here is your cat report.
|
7
|
-
|
8
|
-
You have found 5 cats less than anyone else
|
9
|
-
[Find more cats](http://localhost/cats)
|
10
|
-
|
11
|
-
Down the road
|
12
|
-
|
13
|
-
Across the hall
|
14
|
-
|
15
|
-
Your achievements
|
16
|
-
|
17
|
-
You're currently finding about
|
18
|
-
12 cats
|
19
|
-
per day
|
20
|
-
|
21
|
-
[Number of cats found]
|
22
|
-
|
23
|
-
---------------------------------------------------------------
|
24
|
-
|
25
|
-
Your last cat was found two days ago.
|
26
|
-
|
27
|
-
One type of cat is a kitten.
|
28
|
-
|
29
|
-
Special account A1
|
30
|
-
|
31
|
-
12.345
|
32
|
-
|
33
|
-
http://localhost/logout
|
34
|
-
|
35
|
-
How can you find more cats?
|
36
|
-
|
37
|
-
Look in trash cans
|
38
|
-
|
39
|
-
Start meowing
|
40
|
-
|
41
|
-
Eat cat food
|
42
|
-
|
43
|
-
Some cats like to hang out in trash cans. Some cats do not. Some cats are attracted to similar tones. So one day your tears may smell like cat food, attracting more cats.
|
44
|
-
https://localhost/about https://localhost/about https://localhost/about
|
45
|
-
[Cats are great.](https://github.com/soundasleep/html2text_ruby) [Find more cats.](https://github.com/soundasleep/html2text_ruby) [Do more things.](https://github.com/soundasleep/html2text_ruby)
|
46
|
-
|
47
|
-
[Contact us](http://localhost/contact)
|
48
|
-
|
49
|
-
cats@cats.com
|
50
|
-
Monday and Friday
|
51
|
-
|
52
|
-
https://github.com/soundasleep/html2text https://github.com/soundasleep/html2text_ruby
|
53
|
-
|
54
|
-
Having trouble seeing this email? [View it online](http://localhost/view_it_online).
|