Use of $modx->htmlspecialchars instead of htmlspecialchars