I have HTML code that is the result of an XSLT conversion. (XML-> HTML)
I want to run another conversion from XSLT to HTML result. (HTML-> HTML)
My problem is that the first conversion may return private tags such as " <img> ", which means that I cannot parse the html result with DocumentBuilder because it uses SAXparser, and of course my html file is not valid xml in all cases. (I get an exception that the next XY tag must be closed.)
I guess there are two solutions.
I would really like to use basically the same method that I used for the first conversion, so I would prefer that one of the solutions to the above problem is that I can not find any obvious third-party banks that can help. (Although I looked.) So basically I would like to know what my options are, are there any solutions to this problem?
Any help would be greatly appreciated.
source share