Skip to main content
Level 3
Oct 16, 2015 2:28 AM UTC
Solved

API to validate string for well formed HTML

Hi,

Is there any API in CQ to validate the textfield string(User will enter meta information) entered is well formed HTML or not

 

Regards

Sankar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

No... Need to write a custom service to validate well formed HTML.

You can use some Java API like JTidy or any similar external services

3 replies

Level 3
Oct 16, 2015 2:28 AM UTC
        Thanks for your information :-)
Translate
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

We have a similar use case for parsing HTML (as opposed to validating) using JSOUP as a community article:

https://helpx.adobe.com/experience-manager/using/html-parser-service.html

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

No... Need to write a custom service to validate well formed HTML.

You can use some Java API like JTidy or any similar external services

Translate