diff --git a/src/Invoice.php b/src/Invoice.php index 06b86b9..f8ad5d4 100644 --- a/src/Invoice.php +++ b/src/Invoice.php @@ -271,7 +271,8 @@ public function render() $template = sprintf('invoices::templates.%s', $this->template); $view = View::make($template, ['invoice' => $this]); - $html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8'); + $html = htmlentities($view, ENT_QUOTES | ENT_HTML5, 'UTF-8'); + $html = html_entity_decode($html, ENT_QUOTES | ENT_HTML5, 'UTF-8'); $this->pdf = PDF::setOptions($this->options) ->setPaper($this->paperOptions['size'], $this->paperOptions['orientation'])