Page 1 of 1

Get text from URL- put into field

Posted: Mon Apr 05, 2010 10:41 pm
by Ron Zellner
I have been trying to get the text content of a standard web page and display it in a stack (in a field)
I found: set the htmlText of field "FromWebSite" to URL "http://www.xxxxx"

But that puts the actual code in the field- How do I display only the text content that is in the code?

Thanks.

Ron

Re: Get text from URL- put into field

Posted: Tue Apr 06, 2010 12:23 am
by Ron Zellner
Actually, I have lot of the web page content displayed in the field, but I also get extraneous code as well.
Is it possible to select content within elements (e. g. Divs, or elements with ID names)?

Re: Get text from URL- put into field

Posted: Wed Apr 07, 2010 1:53 am
by BvG
the htmltext of a field is not the same as xhtml 4.1 strict. It's not even html 1.0 for all I know. It's RevTML, so to say. As for your question, the only way is to parse the text in a repeat loop, or to copy/paste the text from a browser object.