forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from html2text to soundasleep/html2text
- Loading branch information
1 parent
a8d60e4
commit 5bfe3f8
Showing
8 changed files
with
78 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,27 +25,18 @@ public function htmlToTextExamples() { | |
|
||
$cases[] = [ | ||
"\n<p>\n" . | ||
"This is a paragraph with <b>Bold</b> and <i>italics</i>\n" . | ||
"This is a paragraph with <b>Bold</b> and <i>italics</i>.\n" . | ||
"Also some <a href=\"http://www.example.com\">hrefs</a> and a\n" . | ||
"few <mailto:\"[email protected]\">mailto</mailto> tags.\n" . | ||
"This is also a really long long line\n" . | ||
"\n", | ||
"This is a paragraph with BOLD and _italics_ Also some hrefs [1] and a few\n" . | ||
"mailto tags. This is also a really long long line\n" . | ||
"\n" . | ||
"Links:\n" . | ||
"------\n" . | ||
"[1] http://www.example.com\n" . | ||
"", | ||
"This is a paragraph with Bold and italics. Also some [hrefs](http://www.example.com)" . | ||
" and a few mailto tags. This is also a really long long line", | ||
]; | ||
|
||
$cases[] = [ | ||
"<p>\nA <a href=\"{action.do_something}\">token</a>\nis not treated as a relative URL", | ||
"A token [1] is not treated as a relative URL\n" . | ||
"\n" . | ||
"Links:\n" . | ||
"------\n" . | ||
"[1] {action.do_something}\n", | ||
"A [token]({action.do_something}) is not treated as a relative URL", | ||
]; | ||
|
||
return $cases; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters