If you are doing it in php, there is a function which escapes translates
html for display as html. :) Look in the string functions documentation for
"htmlspecialchars" and "htmlentities".
If you are not using PHP the minimum translation requirement would be
(courtesy of php docs):
'&' (ampersand) becomes '&'
'"' (double quote) becomes '"'
'<' (less than) becomes '<'
'>' (greater than) becomes '>'
I am sure someone is going to provide the perl equivalent functions. And at
least three people will argue how you shouldn't bother with a function and
compete who can supply the shortest substition regex. :)
Cheers,
Dave.
--
David Zverina
Alt Key Pty. Ltd.
http://www.altkey.com
PO Box 3121, Parramatta, 2124, Australia
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Terry Collins
> Sent: Saturday, 9 December 2000 17:44
> To: Slug
> Subject: [SLUG] Showing HTML in a WWW page
>
>
> Gidday Sluggers
>
> I want to show a html page in a WWW page.
> How it it done?
>
> All I can think of is to the replace the < & > of tags with < and
> >.
> Is this the correct method?
> --
> Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861
> email: [EMAIL PROTECTED] www: http://www.woa.com.au
> WOA Computer Services <lan/wan, linux/unix, novell>
>
> "People without trees are like fish without clean water"
>
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
>
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug