org.htmlparser

Interface Remark

public interface Remark extends Node

This interface represents a comment in the HTML document.
Method Summary
StringgetText()
Returns the text contents of the comment tag.
voidsetText(String text)
Sets the string contents of the node.

Method Detail

getText

public String getText()
Returns the text contents of the comment tag.

Returns: The contents of the text inside the comment delimiters.

See Also: Remark

setText

public void setText(String text)
Sets the string contents of the node. If the text has the remark delimiters (<!-- -->), these are stripped off.

Parameters: text The new text for the node.

See Also: Remark

HTML Parser is an open source library released under LGPL. SourceForge.net