encode html with js

Giganews Newsgroups
Subject: encode html with js
Posted by:  us…@domain.invalid
Date: Wed, 16 Jul 2003

hi there

has anyone of you writte a function to encode html from like '&' ->
'&' and likes to share it with me.. or can anybody give me a hint
how to set up something like that.

cheers me.