created factory for view helper to inject escaper