i am getting anchor tag in stringHTML
in API response and parsing it using react-html-parser
which is working fine. The problem is when I click on the anchor tag URL does append in website URL which makes it wrong URL. You can see in the below image.
So my question is what can i do to avoid this behavior? If URL contains https://www.facebook.com
then it is working fine but if it contains www.facebook.com
then it append in website url.
Live Code: https://testonqa.vonza.net/scheduling/faheem-saleem
just select any slot and you will redirect to next screen where you will see description in bottom of form.
StringHtml markup in API
description: "<p><a href="www.facebook.com" rel="noopener noreferrer"
My code to parse it
<span class="text-muted">
{ReactHtmlParser(eventDescription)}
</span>