Browse Source

Update odf.php

Laurent Destailleur 2 năm trước cách đây
mục cha
commit
46a8b5d9cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      htdocs/includes/odtphp/odf.php

+ 1 - 1
htdocs/includes/odtphp/odf.php

@@ -168,7 +168,7 @@ class Odf
 		$value = html_entity_decode($value, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
 
 		// fix breaklines.
-		$value = preg_replace('/<[ ]*br[ ]*\/?>/', "<br />", $value);
+		$value = preg_replace('/<br\s*\/?>/', "<br />", $value);
 		$convertedValue = $value;
 
 		// Check if the value includes html tags