Disallowing specific html tags

2 posts, 0 answers
  1. Angie
    Angie avatar
    120 posts
    Member since:
    Jan 2008

    Posted 19 Aug 2013 Link to this post

    Hello.  Is there a way to tell the editor to block certain html tags such as embed, object, iframe, img, etc?    I've got AllowScripts = false turned on, and that works for blocking <script> tags, but I would like to be able to block other tags as well.

    Thank you!
  2. Marin Bratanov
    Marin Bratanov avatar
    5921 posts

    Posted 22 Aug 2013 Link to this post

    Hi Angie,

    You can create a custom filter that will remove the desired content: http://demos.telerik.com/aspnet-ajax/editor/examples/contentfilters/defaultcs.aspx.

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top