angularjs: add escape behavior