Tags such as <br/> aren't handled correctly by the XHTML parser.
John suggests the following:
--------------
I did something like this on line 70 to fix:
String text = parser.getText(); // For simple tags like <BR/> we get START_TAG and END_TAG. // Ignore END_TAG (otherwise it doubles the output). if (!text.endsWith("/>")) { buffer.append(text); } --------------
Tags such as <br/> aren't handled correctly by the XHTML parser.
John suggests the following:
-------------- I did something like this on line 70 to fix:
String text = parser.getText();
// For simple tags like <BR/> we get START_TAG and END_TAG.
// Ignore END_TAG (otherwise it doubles the output).
if (!text.endsWith("/>")) {
buffer.append(text);
}
--------------