summaryrefslogtreecommitdiff
path: root/vendor/soundasleep/html2text/html2text.php
blob: ed52a3b6da568ecd8b056a0fe6939558e32834f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}