Bootstrap popover hides line breaks

后端 未结 6 1009
野趣味
野趣味 2020-12-24 10:44

I am using the html code as follows to show the bootstrap popover



        
6条回答
  •  春和景丽
    2020-12-24 11:11

    You can use white-space: pre-wrap; to preserve line breaks in formatting. There is no need to manually insert html elements.

    .popover {
        white-space: pre-wrap;    
    }
    

提交回复
热议问题