From: SourceForge.net <no...@so...> - 2004-04-29 07:57:22
|
Bugs item #944288, was opened at 2004-04-29 09:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=944288&group_id=13153 Category: Tidy functionality Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ronald Haring (rharing66) Assigned to: Nobody/Anonymous (nobody) Summary: replacing of & entities in pre tags. Initial Comment: Hello, I've run into a problem, using &entities (like <) inside a pre tag. Using parseDOM(inputstream, outputstream) the & entities are correctly not replaced. However, when using the dom model and parsing over the nodes, the &entity is replaced by its html equivalent, resulting in errors when redisplaying. After changing the following line in ParserImpl.java the node method worked correctly, but then the parseDOM(is,os);String content = new String(os.getBytes()) showed a different result again. Now I am not sure what is the correct behaviour. ParserImpl.java: // roha when using PREFORMATTED, the &entities inside a pre tag will be replaced with their html entities. // while ((node = lexer.getToken(Lexer.PREFORMATTED)) != null) while ((node = lexer.getToken(Lexer.IGNORE_MARKUP)) != null) See attached testcase for results. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=944288&group_id=13153 |