mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°7571 - ⬆️ Bump HTML2Text library version
This commit is contained in:
16
lib/soundasleep/html2text/html2text.php
Normal file
16
lib/soundasleep/html2text/html2text.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is available if you still want to use functions rather than
|
||||
* autoloading classes.
|
||||
*/
|
||||
|
||||
require_once(__DIR__ . "/src/Html2Text.php");
|
||||
require_once(__DIR__ . "/src/Html2TextException.php");
|
||||
|
||||
function convert_html_to_text($html, $ignore_error = false) {
|
||||
return Soundasleep\Html2Text::convert($html, $ignore_error);
|
||||
}
|
||||
|
||||
function fix_newlines($text) {
|
||||
return Soundasleep\Html2Text::fixNewlines($text);
|
||||
}
|
||||
Reference in New Issue
Block a user