Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

API to validate string for well formed HTML

sankarr26533925
Level 4
Level 4

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

1 Accepted Solution
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

3 Replies
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

smacdonald2008
Level 10
Level 10

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

sankarr26533925
Level 4
Level 4
        Thanks for your information 🙂