var str = '<p><img src="https://*****.oss-cn-beijing.aliyuncs.com/2021012216344225e5c4833.png"/></p>'
//父组件加密
var encodeUrlParameter = encodeURIComponent(str)
console.log(encodeUrlParameter);
//子组件解密
var urlParameter = decodeURIComponent(encodeUrlParameter);
console.log(urlParameter);