CuteEditor for ASP 6.6 Class Library

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.


Example Code

      <%
           Dim editor
           Set editor = New CuteEditor
           editor.ID = "Editor1"
           'If you want to use simple Ampersand in query strings, you can set this property to true.
           editor.UseSimpleAmpersand = true
           editor.Text = "Hello World"
           editor.Draw()
      %>

See Also

Editor Class | CuteEditor Namespace