vue nl2br v html,javascript - replace \n to new line on vuejs - Stack Overflow-CSDN博客

网站介绍:文章浏览阅读48次。I am trying to replace \n characters to new line of a data which comes from endpoint.I tried {{ item.licensedocument.legal.documentText.replace(/(?:\r\n|\r|\n)/g, '') }} and didn’t worked. Curly brack..._html \n new line