[Htmlparser-user] IMG tag within an A tag does not show up
Brought to you by:
derrickoswald
From: Chris <ch...@su...> - 2002-07-09 18:28:29
|
Somik, I have updated to v1.2 and it is doing well. I have this problem that IMG within an A tag do not show up at all. <a href="link"><img src="link"></a> will come through the parser as: <a href="link"></a> Code Snippet: --------------- snip --------------- if (node instanceof HTMLLinkTag) { // *********************************** // Link Tag // *********************************** HTMLLinkTag htmlTag = (HTMLLinkTag)node; // Link Tag _pwOut.print( "<a href=\"" + htmlTag.getText(); + "\">" ); _pwOut.println( htmlTag.getLinkText() + "</a>" ); } --------------- snip --------------- -chris carey sublimespot.com |