Remove JHtml::core() statement.
Change getEscaped() to escape()