That's because inside the closure we're outside of the object's scope, and ``getEscapeHtmlHelper()`` is a ``protected`` method. So you will have to keep the ``$escapeHtml`` variable as an argument, but you still don't need to pass ``$self`` by reference.

Sorry about that, I didn't know ``getEscapeHtmlHelper()`` was a protected method.