javascript - HTML tag in scope of angularjs -


i need put <br /> tag in $scope.mytext in controller, how ?

something $sce.trustashtml("<br />") should work.

$sce.trustashtml() returns string safe use ng-bind-html. can read more here

$sce.trustashtml vs. ng-bind-html


Comments

Popular posts from this blog

android - Automated my builds -

python - How to return the most similar word from a list of words? -

apache - GeoServer under https -