How to disable HTML auto encode with my atributes?

Last post 06-14-2010, 2:10 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  06-12-2010, 8:29 AM 61700

    How to disable HTML auto encode with my atributes?

    Hi, dear
     
    I have a question when using the cool CuteEditor.Net in my CMS system.
     
    I have some custom tags, like: [control:XXXX Path="help?a=1&b=a"]
     
    When I save the  code and open the document again,  the custom tag will be auto-html encoded to:
     
     
    [control:XXXX Path="help?a=1&b=a"]
     
    That is not expected, do we have a manner to prevent this happen?
     
    Thank you 
    Filed under: ,
  •  06-12-2010, 8:49 AM 61701 in reply to 61700

    Re: How to disable HTML auto encode with my atributes?

    Please check the Editor.UseSimpleAmpersand Property.

    W3C recommend that all '&' in query strings be converted to & This is the only way to get a piece of HTML validated. The reason is that & is the start of an HTML entity, such as £

    So this:

            <a href="page.aspx?var1=one&amp;va­r2=two">link</a>
    is valid, whereas:
            <a href="page.aspx?var1=one&var2=t­wo">link</a>
    isn't.

    If you still want to use simple Ampersand in query strings, you can set this property to true. if you want to retrieve the CuteEditor HTML content in XHTML format, the 'UseSimpleAmpersand' property will be ignored.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-12-2010, 10:43 PM 61704 in reply to 61701

    Re: How to disable HTML auto encode with my atributes?

    Thank you for the replay,.
     
     But please have a loot at my code
     
    I already encoded & to &amp; ,   why it html encode it again?  become  &amp;amp;,  that is incorrect
     
    I tested in the <a href="&amp;" /> tag, no such problem,.  it only happens to my custom tags ,  or iframe src attribute  
  •  06-14-2010, 2:10 AM 61714 in reply to 61704

    Re: How to disable HTML auto encode with my atributes?

    Hi JerryWang,
     
    Can you reproduce this issue on demo http://cutesoft.net/example/general.aspx?
     
    If so, please show me the steps, it will very helpful.
     
    If it need a special example to reproduce it. please create the example and send it to me.
     
     
    Regards,
     
    ken
View as RSS news feed in XML