Compress content inside a script tag with type text/ng-template