我需要在控制器的$ scope.myText中放入<br />
标签,该怎么做?
Something like $sce.trustAsHtml("<br />")
should work.
$sce.trustAsHtml()
returns a string that is safe to use with ng-bind-html
. You can read more about it here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.