html
<div class="info-row" v-html="th:text">
<span class="title"><i class="fa fa-file-text-o" aria-hidden="true"></i> 中间件配置文件信息:</span>
<div class="center" th:text="${data.configFile}"></div>
</div>
css
.center {
margin:0 auto 0 0;
position: relative;
white-space: pre-wrap;
}
文本内容:
"huidsfhjndjkwh5655\n","二哥风格而奋斗v饿温热">\n",
想要显示效果:
"huidsfhjndjkwh5655
","二哥风格而奋斗v饿温热">\n",
实际效果:
"huidsfhjndjkwh5655\n","二哥风格而奋斗v饿温热">\n",