T
Travis Pupkin
Hi,
I'm putting together a site to allow someone to add content to a DB
through a text area form, and then display it on the web. Pretty basic.
The problem I'm having is that they need to add snippets of javascript,
but by the time its displayed on the page, there have been extra
linebreaks added, breaking the javascript code.
Replace(string, vbCrLf,"") won't work because that removes all
linebreaks. Is there a way to preserve the original linebreaks as
submitted to the DB in the first place?
Thanks.
I'm putting together a site to allow someone to add content to a DB
through a text area form, and then display it on the web. Pretty basic.
The problem I'm having is that they need to add snippets of javascript,
but by the time its displayed on the page, there have been extra
linebreaks added, breaking the javascript code.
Replace(string, vbCrLf,"") won't work because that removes all
linebreaks. Is there a way to preserve the original linebreaks as
submitted to the DB in the first place?
Thanks.