issue #1 reset form resets selected icon to empty
This commit is contained in:
21
app/Paper/HtmlToPos.php
Normal file
21
app/Paper/HtmlToPos.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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);
|
||||
return $posText;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user