]> git.mxchange.org Git - friendica.git/commitdiff
Revert Util\Strings::escapeHtml changes from #7725
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 12 Oct 2019 02:19:20 +0000 (22:19 -0400)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2019 02:19:20 +0000 (22:19 -0400)
- Breaks display of inserted mentions

src/Util/Strings.php

index 91b86fbfdc40b2b385b172c06fc80b030caaf2a9..7d6ed4836d8b833ed904ab2fcb079e9f31ae2e57 100644 (file)
@@ -68,7 +68,7 @@ class Strings
      */
     public static function escapeHtml($string)
     {
-        return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
+        return htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false);
     }
 
     /**