[Seaside] Unraveling the DOM
Avi Bryant
avi at beta4.com
Thu Apr 3 23:41:10 CEST 2003
On Fri, 4 Apr 2003, Keith P. Hodges wrote:
> Avi,
>
> I want to render some html to text, not to the DOM. I thought that I
> could do this by rendering to the DOM and then popping elements off
> the stack and asking those elements to printOn: I found this harder
> than I was expecting.
>
> The objective is to have an WAHtmlHidingRenderer which can be used to
> hide mailto: links or links that you dont want robots to find.
Well, I don't know what you mean by "hiding" in this context. But if you
have an HtmlRenderer, you should be able to get the text with
html document contents
Or if you have a stream
html document printHtmlOn: stream
Does that help?
More information about the Seaside
mailing list