Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Returns < and > character

Status
Not open for further replies.

cybermud

Programmer
Jun 8, 2001
11
US
Gang:

I have a databse query which returns a string. The string may contain the > and < character. When this is outputted, characters beyond the < do not display. Any tips on getting those characters on the page?

Thanks,
Cybermud
 
Gang:

I answered my own question. I just issued a replace command on the < and > characters as the string is outputted. It seems to work ok, even passing between pages. Thanks anyway.

Cybermud
 
If you need to display those signs, you might can try wrapping the variable with #HTMLCodeFormat(VarName)#. But this will actually SHOW all html that may happen to be in the variable.




Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
I might give that a shot, although there is no HTML in the variable. Its a string of ascii characters that may contain the < and > character which are picked up by the HTML parser against my wishes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top