mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-17542 lib/html2text: update to latest upstream version (r2374)
from http://trac.roundcube.net/log/trunk/roundcubemail/program/lib/html2text.php
This commit is contained in:
parent
db26acd41d
commit
ea2678d8b9
3 changed files with 51 additions and 50 deletions
|
@ -1986,9 +1986,6 @@ function html_to_text($html) {
|
|||
$h2t = new html2text($html);
|
||||
$result = $h2t->get_text();
|
||||
|
||||
// html2text does not fix HTML entities so handle those here.
|
||||
$result = trim(html_entity_decode($result, ENT_NOQUOTES, 'UTF-8'));
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue