I'm developing a react application in which I'm printing a JSON Object optionSelected.target
and the content that is being printed happens to be in html format. The content is <div class="card-body">Yes<div>
. I was wondering whether there is a way around through which I can access the content of the html element that is being printed like in this case it will be Yes
.
任何帮助将不胜感激。谢谢!