Strip out non-HTML5 compliant markup

4 posts, 0 answers
  1. Jon
    Jon avatar
    11 posts
    Member since:
    Mar 2011

    Posted 05 May 2011 Link to this post

    Hello,

    How can I make RadEditor strip out any non-HTML5 compliant markup? For example width and height attributes on table rows and cells. Or cellpadding and cellspacing attributes on tables.

    I want to use RadEditor to produce HTML that is fully HTML5 compatible.

    thanks,
    Jon
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 10 May 2011 Link to this post

    Hi Jon,

    You can modify the content of RadEditor by implementing a custom content filter to strip the required attributes. You can find more detailed information on how to register custom content filter in the following live demo and help article:
    Editor / Custom Content Filters
    Content Filters

    I hope this helps.

    Kind regards,
    Dobromir
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Jon
    Jon avatar
    11 posts
    Member since:
    Mar 2011

    Posted 28 Jun 2011 Link to this post

    I had a go at this but it is quite hard to get it right and cover all possibilities.
    I was wondering if Telerik had any plans to make the RadEditor capable of editing HTML5, even if it only handles a few of the new features?
    Just having a setting that prevented invalid HTML5 markup would be helpful.
  4. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 04 Jul 2011 Link to this post

    Hi Jon,

    You are the first to request HTML 5 filter and for the time being we do plan to implement such. If more users however request such functionality we will definitely consider providing it for a future version of the control.

    For Q2 2011 release we developed a new filter for producing E-Newsletter HTML content. You can follow the PITS Issue by its ID: 3785.

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top