Предотвратить XSS PHP

echo htmlspecialchars($string_to_display, ENT_QUOTES, 'UTF-8');
Distinct Dotterel