<?php
$string = '★★ "It\'s a game that feels familiar, though Iever played anything like it." - Kotaku ★★';
var_dump(htmlspecialchars($string, ENT_DISALLOWED));
string(95) "★★ "It's a game that feels familiar, though Iever played anything like it." - Kotaku ★★"
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
string(95) "★★ "It's a game that feels familiar, though Iever played anything like it." - Kotaku ★★"
Notice: Use of undefined constant ENT_DISALLOWED - assumed 'ENT_DISALLOWED' in /in/uPbQ0 on line 6
Warning: htmlspecialchars() expects parameter 2 to be long, string given in /in/uPbQ0 on line 6
NULL