You don't need to pass the variable `$self` by reference, since it is an object. And to simplify, you can remove `$escapeHtml` here and in the line **149**, so you can grab it inside the closure like `$self->getEscapeHtmlHelper()`.