uniapp h5和app无法渲染富文本的解决

var stylePattern = /style="[^=>]*"[\s+\w+=|>]/g;
var innerQuotePattern = /(?)/g;
that.getRegisterAgreement = res.data.content.replace(stylePattern, function(matches) {
return matches.replace(innerQuotePattern, ‘’’);
});
双引号变成单引号

你可能感兴趣的:(javascript,vue)