var stylePattern = /style="[^=>]*"[\s+\w+=|>]/g;
var innerQuotePattern = /(?<!=)"(?!>)/g;
that.getRegisterAgreement = res.data.content.replace(stylePattern, function(matches) {
return matches.replace(innerQuotePattern, ‘’’);
});
双引号变成单引号
uniapp h5和app无法渲染富文本的解决
最新推荐文章于 2024-03-05 09:41:31 发布