Ignore HTML markup in paragraph

Hi,

I need to ignore the HTML markups from the text that I want to check with language tool. I found reference for AnnotatedTextBuilder. However this approach works fine if I am preparing the text at the time of validation itself.

I have scenario where I will receive the complete paragraphs (including html tags and plain text) and then I need to check for grammar and spell checks. Is there any way to check the complete paragraph without need of breaking and building annotated text?

Thanks,
Vinod

1 Like