API to validate string for well formed HTML | Community
Skip to main content
Level 3
October 16, 2015
Solved

API to validate string for well formed HTML

  • October 16, 2015
  • 3 replies
  • 1335 views

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.
Best answer by Lokesh_Shivalingaiah

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

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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

smacdonald2008
Level 10
October 16, 2015

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

Level 3
October 16, 2015
        Thanks for your information :-)