关于转义字符如何显示到页面来,项目急求,谢谢
我项目用到了UEditor,获取的内容包含了html,也就是保存了格式的,但显示到页面时:
<p><span style="color: rgb(0, 0, 0); font-family: 宋体, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; orphans: auto; text-align: start; text-indent: 31.99919891357422px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">一名葡萄牙记者希望诺伊尔和梅西评价C罗过去一年的表现</span><span style="color: rgb(0, 0, 0); font-family: 宋体, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; orphans: auto; text-align: start; text-indent: 31.99919891357422px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">一名葡萄牙记者希望诺伊尔和梅西评价C罗过去一年的表现</span><span style="color: rgb(0, 0, 0); font-family: 宋体, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; orphans: auto; text-align: start; text-indent: 31.99919891357422px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">一名葡萄牙记者希望诺伊尔和梅西评价C罗过去一年的表现</span><span style="color: rgb(0, 0, 0); font-family: 宋体, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 28px; orphans: auto; text-align: start; text-indent: 31.99919891357422px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">一名葡萄牙记者希望诺伊尔和梅西评价C罗过去一年的表现</span></p>
所以怎么解决了,谢谢了。