26 Commits

Author SHA1 Message Date
Alain Corbière
11b4ad97f4 MDL-41672 Fix html2text processing of multiple occurrences of the same URL 2013-10-09 15:40:38 +02:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
David Mudrák
a7182af94a MDL-35206 Fix the links list enumeration in the html2text library 2013-06-28 13:10:10 +02:00
Petr Skoda
3d6b5d37b2 MDL-31805 import html2text revision 5886 with our customisations
snapshot from https://github.com/moodle/custom-html2text/tree/MOODLE_5886_1
2012-03-10 12:40:04 +01:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Rajesh Taneja
59c81169ef MDL-22896 libraries: Updated regular expression in html2text, for replacing unknown/unhandled entities 2012-02-24 10:08:56 +08:00
Justin Filip
11ec8c0412 MDL-30741 Fix the handling of PRE tags with the latest code from upstream: http://trac.roundcube.net/browser/trunk/roundcubemail/program/lib/html2text.php?rev=5497 2011-12-15 11:11:31 -05:00
Tim Hunt
1f347cb71d MDL-29462 html_to_text('0') gives '', not '0'. 2011-09-21 16:38:58 +01:00
Eloy Lafuente (stronk7)
3709ecb929 MDL-27736 improve a bit html2text to avoid some ugly & unnecessary trailing spaces 2011-06-06 16:42:55 +01:00
Tim Hunt
6cb034c9d2 MDL-25018 stop html_to_text from breaking utf-8 multibyte characters. 2010-11-02 20:03:48 +00:00
Petr Skoda
30c39ac54f MDL-24058 no stripslashes any more 2010-09-02 12:49:29 +00:00
Tim Hunt
a194c2187b weblib MDL-22664 html_to_text should not strip images, it should replace them by their alt text.
Also, an new optional argument to html_to_text to control word-wrapping.
2010-08-04 17:40:01 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
samhemelryk
226617eafb lib MDL-19236 Added phpdocs and copyrights 2009-05-26 02:17:06 +00:00
fmarier
ea2678d8b9 MDL-17542 lib/html2text: update to latest upstream version (r2374)
from http://trac.roundcube.net/log/trunk/roundcubemail/program/lib/html2text.php
2009-05-22 02:10:22 +00:00
fmarier
588acd0608 MDL-17542 weblib/html2text: replace html2text.php with a GPL alternative (which is also faster) 2008-12-17 02:55:33 +00:00
stronk7
4c3396fc9f Fix A tag regex searching. MDL-15842 ; merged from 19_STABLE 2008-07-26 23:04:50 +00:00
skodak
4cfededa0d MDL-14029 html2text throws tons of notices is style or script tags found; merged from MOODLE_19_STABLE 2008-03-23 16:51:55 +00:00
moodler
fae1077b2a Removed $goodStr = str_replace(chr(160), ' ', $goodStr );
as it causes bug 2794 and I can't even see what the point of it was.
2005-03-27 05:50:21 +00:00
moodler
9ef2b3f3aa Fixed some formatting problems (not caused by my last checkin!)
- <hr> and <br> weren't being processed.
  - Now, space runs are replaced differently which makes code look better.
2005-01-22 02:40:07 +00:00
moodler
00666d4f25 Fixed bug 2040 relating to the last character being chopped off in the
html2text conversion.

While there I tidied up the source and fixed up a problem where the links
were being printed BEFORE the text they refer to (now they are directly after)
2005-01-19 12:12:34 +00:00
gustav_delius
dcb1bd3c9a towards XHTML compliance 2004-09-12 13:21:01 +00:00
defacer
8d24137466 Email digest feature step 2: Slight additions to datalib queries, fixed warnings in html2text 2004-06-01 07:28:14 +00:00
moodler
07c270c127 Upgraded to latest version and fixed some undefined variables 2004-04-01 03:16:25 +00:00
moodler
6476f5fca6 Modifications from Mark (main author) to be more robust with
certain types of bad HTML code
2003-11-07 11:01:16 +00:00
moodler
b6c120104f A new function for converting HTML into text form 2003-11-07 03:25:09 +00:00