RichTextEditor for ASP 8.0 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 RichTextEditor HTML content in XHTML format, the 'UseSimpleAmpersand' property will be ignored.

Example

<%
    Dim rte      
    Set rte=new RichTextEditor   
    rte.Text="Type here"
    rte.UseSimpleAmpersand=false  
    rte.ID="Editor1"
    rte.MvcInit()
    Response.Write(rte.GetString())  
    // use Request.Form("Editor1")to retrieve the data  
%>

See Also

Editor Class | RTE Namespace