HTMLDecode and 4007

Last post 05-29-2005, 10:49 AM by WCanyon. 1 replies.
Sort Posts: Previous Next
  •  05-29-2005, 10:40 AM 7106

    HTMLDecode and 4007

    I've upgraded to 4007 to try to get around a bug. Now I've got a new bug. When I take in HTML and store it in the DB I'm HTMLEncoding it. Worked fine in 4005. So it looks like this in the db: 
    <p align="center"><a href="http://innovationsincounseling.com/" target="_blank"></a></p><div align="center"><div class="bodyLeft" align="left">Coming soon...</div><

    When I bind this text to the editor with the new dll the text looks like this:

    #1p align="c#9nt#9r"#2#1a hr#9f="http://inn#5vati#5n#7inc#5un#7#9ling.c#5m/" targ#9t="_blank"#2#1/a#2#1/p#2#1div align="c#9nt#9r"#2#1div cla#7#7="b#5dyL#9ft" align="l#9ft"#2C#5ming #7#5#5n...#1/div#2#1div cla#7#7="b#5dyL#9ft" align="l#9ft"#2#3#0160;#1/div#2#1div cla#7#7="b#5dyL#9ft" align="l#9ft"#2hHHJKh #3lt;#3gt; #4#3amp;^%^%$$#0@#0!()_)_~!+"}{}":[][]||||

    The code I'm using is:

    edEventText.Text = Server.HtmlDecode(dbText);



     
     
  •  05-29-2005, 10:49 AM 7107 in reply to 7106

    Re: HTMLDecode and 4007

    Actually this is happening in 4005 as well.
     
    I'm working on dealing with punctuation and so on in CuteEditor. I've found that if I put any lt or gt in the text then it will blow up and I'll get the output above, but the HTML looks OK before I bind it.
     
    What should I do to work around this?
View as RSS news feed in XML