Is there any Javascript library that can validate html? : <p>What I am trying to get is very simple: I have a textbox in my website where i can use html and when i press the "Send" button, the value in that textbox is send to the website. But sometimes a user comes to the site, writes html and forgets to close the tag for example, messing up completly my site.
In order to solve this problem, all i want is a validator that when the button is clicked, it checks whatever was written and inspects if something is incorrect and presents a solution to correct the html problem.
I've seen plataforms like <a href="https://validator.w3.org/docs/api.html" rel="nofollow noreferrer">https://validator.w3.org/docs/api.html</a> that do exactly what i want but can i use it in my own site?</p>

<p>I tried to do something in my own with Javascript but it's very complex and has a lot of issues.</p>

<p>Can please someone help me?</p>
