Could you tell me how to output the img tag in the object into a picture?

clipboard.png

clipboard.png
?

clipboard.png

instead of using innerHTML, I use the situation where parameters are passed by react components {this.props.log}

Mar.22,2021

if you don't consider XSS, just innerHTML the tag


innerHTML


innerHTML into the tag.


innerHTML


the address of your picture happens to be a network address, so you can use
< div dangerouslySetInnerHTML= {{_ html: this.props.log}} / > to achieve the function, but I tried it. If the image address is a local address, it is not allowed.


html ()

Menu