How to make Twitter Bootstrap tooltips have multiple lines?

后端 未结 6 1131
南笙
南笙 2020-12-07 13:06

I am currently using the below function to create text that will be displayed using Bootstrap’s tooltip plugin. How come multiline tooltips only work with

6条回答
  •  鱼传尺愫
    2020-12-07 13:25

    In Angular UI Bootstrap 0.13.X, tooltip-html-unsafe has been deprecated. You should now use tooltip-html and $sce.trustAsHtml() to accomplish a tooltip with html.

    https://github.com/angular-ui/bootstrap/commit/e31fcf0fcb06580064d1e6375dbedb69f1c95f25

    Check me out!
    
    $scope.htmlTooltip = $sce.trustAsHtml('I\'ve been made bold!');
    

提交回复
热议问题