Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Escape Text in PL/SQL

Re: Escape Text in PL/SQL

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Sat, 12 Jun 1999 20:32:54 GMT
Message-ID: <376ec3cf.6298186@newshost.us.oracle.com>


A copy of this was sent to robert.bowen_at_mubimedia.com (if that email address didn't require changing) On Sat, 12 Jun 1999 15:48:12 GMT, you wrote:

>I know you can do an ESCAPE 'text' in SQL but how can you escape text
>in PL/SQL? For example, when I print my page via htp.p, I want to do
>the following:
>
>htp.p('text<a href="javascript:func(\'' || variable || '\')"> text ');
>

htp.p('text<a href="javascript:func(''' || variable || ''')"> text ');

will do it -- '' = ' in a character string constant.

>As you see, I need the parameter passed to my javascript function to be
>inside quotes. But the "\" I use does not work. Is this possible?
>
>Thanks in advance.
>syg
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.

See http://www.oracle.com/ideveloper/ for my column 'Digging-in to Oracle8i'... Mirrored (and more current) at http://govt.us.oracle.com/~tkyte/

Current article is "Fine Grained Access Control", added June 8'th  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA
--
Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Sat Jun 12 1999 - 15:32:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US