Don't use htmlspecialchars
Move convertEventToJsonArray to front end model