removing ng-if, class, and id attributes from html elements before saving static html