aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/text.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/text.php b/include/text.php
index baf1f770b..acfef2d62 100644
--- a/include/text.php
+++ b/include/text.php
@@ -13,6 +13,7 @@ use Zotlabs\Lib\Crypto;
use Zotlabs\Lib\SvgSanitizer;
use Zotlabs\Lib\Libzot;
use Zotlabs\Lib\AccessList;
+use Zotlabs\Lib\Text;
require_once("include/bbcode.php");
@@ -108,10 +109,7 @@ function notags($string) {
* @return string
*/
function escape_tags($string) {
- if (!$string) {
- return EMPTY_STR;
- }
- return (htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false));
+ return Text::escape_tags($string);
}
function unescape_tags($string) {