Hello Tim,

< and > will do fine.

If you want to be able to display abitary strings, you could write a function to 
escape the special HMTL characters.

here's a starter

html-escape: func [source] [
    source: copy source
    replace/all source "&" "&"
    replace/all source "<" "&lt;"
    replace/all source ">" "&gt;"
    source
]

## print html-escape "<!-- this is a test -->"
&lt;!-- this is a test --&gt;


Best regards
Thomas Jensen

On 30-Oct-00, you wrote:

> Hi Al and Joe:
>    I've just got a minute here. If I'm still not clear enough,
> I'll have to write a simple test script and send it tomorrow.
> 
> I want to be able to show an actual tag in the web
> content that my CGI program writes, to give directions
> to a user.
> maybe I just have to rely on '&lt and '&gt
> I'm sure that will work.
> 
> Thanks a bunch folks!
> Later
> Tim
> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> Tim Johnson wrote:
>>> Howdy:
>>> I need to be able to display literal representations of HTML tags in the content 
>itself.
>>> 
>>> example:
>>> 
>>> test: func[][print "<!--TEST-->"]
>>> calling test results in the comment tag being placed in the source code.
>>> 
>>> I want it to appear in the content itself.
>>> Any ideas.
>> 
>> Could you explain what you are trying to do? What is 'test in?
>> 
>> Andrew Martin
>> The one and only Rebol Server Pages expert :-)
>> -><-
>> 
>> --
>> To unsubscribe from this list, please send an email to
>> [EMAIL PROTECTED] with "unsubscribe" in the
>> subject, without the quotes.
> 



-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to