Using the Jericho API, can I validate a given HTML tag like <input type="test" .....>
? I was unable to find an API in Jericho that would do so. Is there a way where I could do that using Jericho only?
I don't want to tidy or Sanitise the HTML tag. I just want to check for its validity.
The Jericho API will log all the validations telling you all your flaws and gaps in the constructed HTML you are validating. It does its own version of tag tidying but also logs that information of it's version of the logger.
Let's try to print what Jericho thinks about your
html
tag:Output which I get is:
This log entry looks to be parsable and can be used in more than one way.