Why are my “
” tags getting converted to “
”?

后端 未结 5 2119
Happy的楠姐
Happy的楠姐 2020-12-31 16:05

I have HTML data stored in database which I wish to display as is. It keeps converting
tags to <br /> which is a behavior I do not want. I

5条回答
  •  执念已碎
    2020-12-31 16:18

    You can also replace the chars with the actual
    tag.

    myString.replace(/<br>/g, '
    ')

提交回复
热议问题