Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from rec.arts.ascii, 9 Aug 1994.
Talk & Perl program for processing ASCII to HTML

Talk & Perl program for processing ASCII to HTML

Just a side note:

If you put ASCII art on the Web in an HTML file, make sure to translate
"special" characters to entity references so Web browsers don't choke.

Here's a simple Perl program that will procees an ASCII file from
standard input and output the HTML version of the file to
standard output for inclusion into an HTML document:

    #! /usr/bin/perl
    while (<>) {
	s/\&/\&amp;/g;
	s/</\&lt;/g;
	s/>/\&gt;/g;
	print STDOUT;
    }
    # end


	--ewh

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fbb9d,6af61c436c2df610
X-Google-Attributes: gidfbb9d,public
X-Google-ArrivalTime: 1994-08-09 15:20:29 PST
Path: bga.com!news.sprintlink.net!sashimi.wwa.com!gagme.wwa.com!not-for-mail
From: eho...@convex.com (Earl Hood)
Newsgroups: rec.arts.ascii
Subject: Talk & Perl program for processing ASCII to HTML
Date: 9 Aug 1994 17:13:38 -0500
Organization: Engineering, Convex Computer Corporation, Richardson, Tx USA
Lines: 22
Sender: bob...@gagme.wwa.com
Approved: bob...@wwa.com
Message-ID: <328v2i$dj...@gagme.wwa.com>
References: <326quu$d7...@gagme.wwa.com>
NNTP-Posting-Host: gagme.wwa.com
About this message. This message was posted publicly to the newsgroup rec.arts.ascii in 1994 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post