public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/soundasleep/html2text/html2text.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<?php
2
/******************************************************************************
3
* Copyright (c) 2010 Jevon Wright and others.
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v1.0
6
* which accompanies this distribution, and is available at
7
* http://www.eclipse.org/legal/epl-v10.html
8
*
9
* or
10
*
11
* LGPL which is available at http://www.gnu.org/licenses/lgpl.html
12
*
13
*
14
* Contributors:
15
* Jevon Wright - initial API and implementation
16
****************************************************************************/
18
/**
19
* This file is available if you still want to use functions rather than
20
* autoloading classes.
21
*/
23
require_once(__DIR__ . "/src/Html2Text.php");
24
require_once(__DIR__ . "/src/Html2TextException.php");
26
function convert_html_to_text($html) {
27
return Html2Text\Html2Text::convert($html);
28
}
30
function fix_newlines($text) {
31
return Html2Text\Html2Text::fixNewlines($text);
32
}