From 352e1706470cae2c864c8668d07977d8c12fce9f Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 18 Dec 2025 09:34:35 +0100 Subject: [PATCH] Protect note of HTML special char --- include/XMLDocument/xmlinvoice.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/XMLDocument/xmlinvoice.class.php b/include/XMLDocument/xmlinvoice.class.php index 36b6ae1db..8c87f4687 100644 --- a/include/XMLDocument/xmlinvoice.class.php +++ b/include/XMLDocument/xmlinvoice.class.php @@ -193,7 +193,8 @@ abstract class XMLInvoice extends \DOMDocument $nb_note=count($a_note); for ($e=0;$e<$nb_note;$e++) { - $result['note'].= str_replace(' ','',$a_note[$e]['n_text']); + + $result['note'].= html_entity_decode($a_note[$e]['n_text']); } // goods and services $result['operation']=array();