File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function build($state = null)
51
51
$ order ['merchant_reference ' ] = $ reference ;
52
52
}
53
53
54
- return $ order ;
54
+ return Helper:: removeHtmlEntities ( $ order) ;
55
55
}
56
56
57
57
public function merchant ()
Original file line number Diff line number Diff line change @@ -46,6 +46,20 @@ public static function removeNulls($data)
46
46
return $ data ;
47
47
}
48
48
49
+ public static function removeHtmlEntities ($ data )
50
+ {
51
+ foreach ($ data as $ key => $ value ) {
52
+ if (is_string ($ value )) {
53
+ $ data [$ key ] = html_entity_decode ($ value , ENT_COMPAT | ENT_HTML401 , 'UTF-8 ' );
54
+ } else {
55
+ if (is_array ($ value )) {
56
+ $ data [$ key ] = self ::removeHtmlEntities ($ value );
57
+ }
58
+ }
59
+ }
60
+ return $ data ;
61
+ }
62
+
49
63
public static function notNull ($ value1 , $ value2 )
50
64
{
51
65
return is_null ($ value1 ) ? $ value2 : $ value1 ;
You can’t perform that action at this time.
0 commit comments