Skip to content

Commit

Permalink
N°7571 - ⬆️ Bump HTML2Text library version
Browse files Browse the repository at this point in the history
  • Loading branch information
eespie committed Jun 13, 2024
1 parent bfbb046 commit 47d6593
Show file tree
Hide file tree
Showing 24 changed files with 2,529 additions and 381 deletions.
331 changes: 0 additions & 331 deletions application/Html2Text.php

This file was deleted.

28 changes: 0 additions & 28 deletions application/Html2TextException.php

This file was deleted.

3 changes: 2 additions & 1 deletion application/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\OutputStyle;
use ScssPhp\ScssPhp\ValueConverter;
use Soundasleep\Html2Text;


/**
Expand Down Expand Up @@ -2067,7 +2068,7 @@ public static function HtmlToText($sHtml)
{
try {
//return '<?xml encoding="UTF-8">'.$sHtml;
return \Html2Text\Html2Text::convert('<?xml encoding="UTF-8">'.$sHtml);
return Html2Text::convert('<?xml encoding="UTF-8">'.$sHtml);
}
catch (Exception $e) {
return $e->getMessage();
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"symfony/yaml": "~6.4.0",
"tecnickcom/tcpdf": "^6.6.0",
"thenetworg/oauth2-azure": "^2.0",
"masterminds/html5": "^2.8.0"
"masterminds/html5": "^2.8.0",
"soundasleep/html2text": "~1.1"
},
"require-dev": {
"symfony/debug-bundle": "~6.4.0",
Expand Down
Loading

0 comments on commit 47d6593

Please sign in to comment.