I am working on some kind of store and i am using dangerouslysetinnerhtml in my code but i have been asked not to use it and also not to use third party libraries. Is there a better alternative i can use? this is the code below:
<div
className="product-description"
dangerouslySetInnerHTML={{
__html: purify(this.props.product.description),
}}
/>