@Test
public void whitespaceHtml() throws IOException {

	String whitespace = "<p>sometext\r moretext</p>";
	String expected = "sometext moretext";
	final StringBuilder b = new StringBuilder();
	SimpleXMLParser.parse(new SimpleXMLDocHandler() {
		public void text(final String str) {
			b.append(str);
		}
		public void startElement(final String tag, final Map<String, String> h) {
		}
		public void startDocument() {
		}
		public void endElement(final String tag) {
		}
		public void endDocument() {
		}
	}, null, new StringReader(whitespace), true);
	Assert.assertEquals(expected, b.toString());
}