Page 1 of 1

removing RTE tags

Posted: Thu Apr 02, 2009 10:39 am
by gaurav.shetti
I am trying to fetch data which contains Rich text editor tags and is of the long field type.
eg
<select A from table where field=$id>
i am querying this to a table on the oracle side.
The result is i am getting the data for A which contains Rich text editor tags . Also the data i am fetching from the oracle is of the long field type. Now i want those RTE tags removed. How can i do it?

removing RTE tags

Posted: Thu Apr 02, 2009 10:49 am
by John
I'm not quite sure I understand where you are selecting the data from (Texis or Oracle), and how you are communicating with Oracle.

If you are selecting from Texis you may be able to do:

select totext(A) from table where field = $id

removing RTE tags

Posted: Thu Apr 02, 2009 11:03 am
by gaurav.shetti
I am selecting the data from oracle

removing RTE tags

Posted: Thu Apr 02, 2009 11:04 am
by gaurav.shetti
currently i am getting results like <P><font face= .....
so on

removing RTE tags

Posted: Thu Apr 02, 2009 1:20 pm
by mark
In vortex you could
<fetch "http://localhost/index.html" $rtedata>
<urlinfo text>
<$text=$ret>

removing RTE tags

Posted: Fri Apr 03, 2009 4:57 am
by gaurav.shetti
if suppose i am getting the results from oracle and storing in in a variable say $vars1

then can i use
<fetch "" $vars1>
<urlinfo text>
<$vars1 = $ret>

is that what you were trying to say. :)

removing RTE tags

Posted: Fri Apr 03, 2009 9:58 am
by John
You still want to include the URL to make sure it is treated as URL. It won't fetch the data from there, but will treated the data in the variable as if it was fetched from that URL.