Tortured for a long time, and finally found the answer so simple. Angularjs in the data binding by default will be in the form of text output, that is, the HTML tags in your data are not escaped the full receipt, so as to improve security, prevent injection attacks in HTML tags, but sometimes it is necessary, In particular, when reading formatted text from a database, it does not display properly in the page.
So how do we output $scope. value= "<a> am I a link </a>" Such a label? Obviously to escape HTML, you need to use the Ng-bind-html property in the tag of the data-bound HTML, which relies on $sanitzie, so you need to introduce the Angular-sanitzie.js file and inject Ngsanitzie in the module. This will enable the escape of the label if the attentive friend will find that the style= "" in the test is not normally escaped because the style label will be angular considered unsafe, so it is automatically filtered out. The above method can only implement static bindings and cannot escape the style. If you need dynamic data binding, and you need a style tag, there is no way to solve it. There is no way to continue research, the final solution is as follows one of the $SCE is angular's own security processing module, $SCE. The trustashtml (input) method is to return the content as an HTML method.
About ANGULARJS automatically escaping HTML tags when binding data