rabin 2 anni fa
parent
commit
59978ca5f5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      lib/Data.php

+ 3 - 0
lib/Data.php

@@ -185,6 +185,9 @@ class Data
                         }
                     }
                 }
+                if (strstr($v, "\n")) {
+                    $v = str_replace("\n", '<br />', $v);
+                }
 
                 if ($state == 1) {
                     if (strstr($v, 'jpg') || strstr($v, 'png') || strstr($v, 'gif')) {