used local version of angular-sanitize.js
wrapped x2json into service