I have a problem reading java an HTML string generated with Primefaces CK Editor:
When applying styles of bold, italics or underlining to the text and changing the font size, the generated html is as follows:
In an HTML viewer, the text with the styles applied and size 14, however when reading it in Java for a PDF report using itext, it ignores the style property, it can not read it because it does not is inside the strong tag.
I would like to know if there is any library or method to format the HTML so that it correctly orders the attributes and tags, or if I can parse the HTML in some other way that accepts this type of ordering, currently I am using Parser, itext, HtmlPipelineContext and HtmlPipeline
Thank you very much