Skip to content Skip to sidebar Skip to footer

Html Tags Passed Within String Not Rendering Fine

I am new to js, I have a drop down slider working fine. Content shows fine with p tag but within that p tag i need to add another link or list tag If I give it displays the whole

Solution 1:

I am not a react expert, but can you try with this, replace

<p> {{content}} </p>

With this

<pdangerouslySetInnerHTML={{__html:content}} />

Post a Comment for "Html Tags Passed Within String Not Rendering Fine"