Daryl,
Well slap my a** and call me Sally. I'm actually doing this with ASP at
the moment, and since it doesn't (to my knowledge) have a fn comparable to
htmlEditFormat, I didn't actually try it with CF first. My apologies to
the group. :)
BTW, the ASP fix is like so: Replace(objRS("body"),"&","&") when
writing the KB article body to the textarea. Even with CF, the
htmlEditFormat() fn is a little too several for my purpose, since it also
escapes legitimate < and > marks, and strips carriage returns.
-Ron
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Daryl Banttari
> Sent: Monday, January 28, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [KCFusion] How to preserve "<" and ">" strings...
> (was: Text box value)
>
>
> If you use htmlEditFormat, then the string ">" will be sent to the
> browser as &gt;
>
> So, it should work just fine. Doesn't it?
>
> If not, please post the snippet in question.
>
> Thanks!
>
> --Daryl
>
> ----- Original Message -----
> From: "Ron Hornbaker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 28, 2002 3:26 PM
> Subject: [KCFusion] How to preserve "<" and ">"
> strings... (was: Text
> box value)
>
>
> > Use the htmlEditFormat() function around the value.
> >
> > Value="#htmlEditFormat("""" & someValue & """")#"
> >
> > This will replace the double quotes with """, as needed.
>
> Speaking of htmlEditFormat, here's a question for you. Say you've got a
> textarea where users can enter a combination of text and html.
> A knowledge
> base system, for the sake of argument. The user decides to enter some
> displayed code, like this:
>
> This is how to <b>bold</b> a word: <b>bold</b>
>
> The user saves the record, and so far so good. Now comes time
> to edit the
> article, and here's where it gets ugly... MSIE will display the
> "<" and
> ">" strings as actual brackets in the text area, so the article now
> looks like this in the textarea input box:
>
> This is how to <b>bold</b> a word: <b>bold</b>
>
> and when the user re-saves the article, they of course get switched back
> to real brackets.
>
> Any workarounds would be appreciated...
>
> -Ron
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/[email protected]
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]