[thelist] passing HTML into a js text array

Matthew Haughey haughey at ssc.ucla.edu
Tue, 21 Dec 1999 16:40:43 -0800


For a fun, I was playing with a dhtml text zoom thing I downloaded here:

http://www.jsworld.com/dhtml/how-to/style/zoomtext.html

It works by growing text strings in an array, using javascript and css.

I haven't had any problems passing text into the array, except when there 
are links inside the text strings (even after I've escaped out all the 
single quotes and double slashes).

if zoom the following text: <a href=\"http:\/\/yahoo.com\">Yahoo.com</a> is 
great

it shows up as plain text (with the "<" and ">" symbols and everything, 
instead of the word Yahoo.com being linked.

any ideas on how to pass HTML to a javascript text array?

Matt