I have a paragraph that is enclosed in artist.bio.summary
. This variable contains all the details about an artist. This is fetched from somewhere else. I am printing this out inside a p
tag.
My problem is there is a link inside this p
tag within a a
tag.
The a
tag is like this;
<a href="https://www.abc.xyz/music/xxx">Read more </a>
The p
tag just prints this out rather than giving me a link to click.
What should I do to act accordingly?
I am calling this property as below:
<p>{artist.bio.summary}</p>
let artist = {
bio: { summary: '' }
};
I had set this artist.bio.summary
as a string initially.
And an example string that i am getting is below:
"hello <a href="https://www.abc.xyz/music/xxx">Read more </a> there"
The above string is the content of the artist.bio.summary
once i received it