1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

add support for multiline text

This commit is contained in:
Benjamin Beganović 2020-12-23 13:49:25 +01:00
parent 3251efeb40
commit 16edac3738

View File

@ -112,6 +112,10 @@ trait PdfMakerUtilities
foreach ($children as $child) {
$contains_html = false;
if (isset($child['content'])) {
$child['content'] = nl2br($child['content']);
}
// "/\/[a-z]*>/i" -> checks for HTML-like tags:
// <my-tag></my-tag> => true
// <my-tag /> => true