[Htmlparser-cvs] htmlparser/src/org/htmlparser Node.java,1.55,1.56
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2006-05-31 02:10:20
|
Update of //cvsroot/htmlparser/htmlparser/src/org/htmlparser In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv27353 Modified Files: Node.java Log Message: implement task #93148 toHtml(boolean verbatim) To avoid printing generated end tags use toHtml(true). Index: Node.java =================================================================== RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/Node.java,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** Node.java 15 Nov 2005 02:09:10 -0000 1.55 --- Node.java 31 May 2006 02:10:15 -0000 1.56 *************** *** 69,72 **** --- 69,84 ---- /** * Return the HTML for this node. + * This should be the sequence of characters that were encountered by + * the parser that caused this node to be created. Where this breaks down is + * where broken nodes (tags and remarks) have been encountered and fixed. + * Applications reproducing html can use this method on nodes which are to + * be used or transferred as they were received or created. + * @return The sequence of characters that would cause this node + * to be returned by the parser or lexer. + */ + String toHtml (); + + /** + * Return the HTML for this node. * This should be the exact sequence of characters that were encountered by * the parser that caused this node to be created. Where this breaks down is *************** *** 74,81 **** * Applications reproducing html can use this method on nodes which are to * be used or transferred as they were received or created. * @return The (exact) sequence of characters that would cause this node * to be returned by the parser or lexer. */ ! String toHtml (); /** --- 86,95 ---- * Applications reproducing html can use this method on nodes which are to * be used or transferred as they were received or created. + * @param verbatim If <code>true</code> return as close to the original + * page text as possible. * @return The (exact) sequence of characters that would cause this node * to be returned by the parser or lexer. */ ! String toHtml (boolean verbatim); /** |