angularjs newline filter with no other html

后端 未结 7 1094
北恋
北恋 2020-12-07 14:14

I\'m trying to convert newline characters (\\n) to html br\'s.
As per this discussion in the Google Group, here\'s what I\'ve got:



        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 14:48

    If you do not want to destroy the layout with endless strings, use pre-line:

    {{ MyMultiLineText}}

提交回复
热议问题