first commit

This commit is contained in:
Gitea
2017-07-18 08:57:31 +02:00
commit 59ac39008d
240 changed files with 72442 additions and 0 deletions

28
app/Paper/HtmlToPos.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Paper;
class HtmlToPos
{
private function handleNewLine($text)
{
return str_replace(['<br>', '<br/>', '<br />'], "\n", $text);
}
public function convert($html)
{
$posText = $this->handleNewLine($html);
// print_r($posText);
// die();
return $posText;
}
}