Based on a comment from MattParr, I've removed the htmlspecialchars since it shouldn't be necessary anymore.
See https://github.com/coencoppens/autotask-dashboards/commit/48dcba81fd6b8f7200f01604f4d7ba48869d7865#commitcomment-4040838