- $url = htmlentities($url, ENT_QUOTES, 'UTF-8', false);
- $title = htmlentities($title, ENT_QUOTES, 'UTF-8', false);
- $preview = htmlentities($preview, ENT_QUOTES, 'UTF-8', false);
+ $url = str_replace(array("[", "]"), array("[", "]"), htmlentities($url, ENT_QUOTES, 'UTF-8', false));
+ $title = str_replace(array("[", "]"), array("[", "]"), htmlentities($title, ENT_QUOTES, 'UTF-8', false));
+ $preview = str_replace(array("[", "]"), array("[", "]"), htmlentities($preview, ENT_QUOTES, 'UTF-8', false));