How to highlight Text in React considering line break \n

前端 未结 0 916
难免孤独
难免孤独 2021-01-24 19:07

I\'m using react-highlight-words library. I want to highlight text considering line break.

Input string: "Contrary to popular\\n belief, Lorem\\n Ip

相关标签:
回答
  • 消灭零回复
提交回复
热议问题