re-design, re-implementation using AngularJS, implement HTML Escape func.