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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying <tags>

Status
Not open for further replies.

snookmz

Programmer
Apr 17, 2001
46
0
0
AU
G'day all,

im writing a perl script, and i need to output tags such as <action> ... </action>

But html treats those as tags and therefore doesn't display them.. Is there a way to force a browser to display the text exactly as??

any help will be grately appreciated, thanks in advance /-------------------------------------
| I always have been, and
| always will be, a newbie :)
\-------------------------------------
 
You need to use special character to &quot;see&quot; these characters. For the
Code:
< & >
use
Code:
& # 6 0 and & # 6 2
respectively.
Remove the spaces between the four characters. It was actually showing the <> even tried using the TGML

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Thank you Deziner,

but the problem is that because im testing my perl script, i can only output <'s and >'s, i cannot change them to other characters for the purpose of my testing..

do u know of a way to just display them as is, or is that impossible? /-------------------------------------
| I always have been, and
| always will be, a newbie :)
\-------------------------------------
 
Hi snookmz,

first: DeZiner's post is OK, but I always close special characters with a semi-colon &amp;#60; and &amp;#62;

second: I don't know anything about perl script but maybe this wil help you

<xmp>
<action>
</xmp>

Hope this helps,
Erik
 
Thanks Boomerang!!!

You've come through with flying colours and delivered exactly what i needed :)

Muchly appreciated, and im in your eternal gratitude :) /-------------------------------------
| I always have been, and
| always will be, a newbie :)
\-------------------------------------
 
Here's another alternative: temporarily change your content-type header from text/html to text/plain. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top