XHTML formating on IMG and BR tags striped

3 posts, 0 answers
  1. Bill Seagle
    Bill Seagle avatar
    1 posts
    Member since:
    Dec 2008

    Posted 10 Aug 2009 Link to this post

    Markup is shown properly in the HTML view of the RadEditor, but is striped when rendered on the page.

    Here is my HTML as shown in the RadEditor:

    <p><img alt="the other" src="/PublishingImages/Signing-4730x.jpg" /></p>  
    <p>this<br /> 
    test</p> 
     

    Note the end tags on BR and IMG, but when the page is rendered I get this:

    <p><img alt="the other" src="/PublishingImages/Signing-4730x.jpg"></p> 
    <p>this<br> 
    test</p> 

     

    For both the img and the br tags the closing / is removed.  How can I prevent this from happenging?

  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 12 Aug 2009 Link to this post

    Hello,

    The behavior you experienced is part of the MOSS publishing sites implementation and we do not have control over it. The editor submits what you see in HTML mode. After that MOSS applies some content filters which modify the content before saving it in the SharePoint database. These filters sometimes break XHTML compliance (removing quotes from attributes or not properly closing tags). As I said, this happens after the content leaves the editor so we have no control over it. You can verify this by entering the same content into a RadEditor web part (content editor web part). Since no filters are applied there, the content you see in HTML mode will remain the same in presentation mode.

    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  3. NTS
    NTS avatar
    4 posts
    Member since:
    Nov 2015

    Posted 06 Jun in reply to Lini Link to this post

    Hi Lini,

     

    Is this 'issue' still the same on the newest RADEditor?

     

    John

Back to Top