$newUrl = html_entity_decode('<a href="index.php?q=event&id=56&date=128">');
echo $newUrl;
// 출력 <a href="index.php?q=event&id=56&date=128">html_entity_decode 함수를 사용하면 해결할 수 있다
만약 var_dump 로 문자열을 찍었는데 바이트 수가 더 많아졌다면
위의 이유 때문이니 이렇게 변환하여 해결하면 됩니다