locked
The HTML Editor Extender sanitizer.ddl assembly file not showing in Bin folder ? RRS feed

  • Question

  • User1909155429 posted

    I have installed the toolkit extensions into bin folder and I cannot see the folder that supposed to contain the sanitizer ?

    I am reading from a website that shows the assembly references in a solution web application project.

    Whereas I am using the alternative web site file version. 

    How may I view  the assembly dll reference files to verify whether or not the sanitizer is loaded ?

    and if not get the sanitizer ?  

    Friday, January 30, 2015 6:44 PM

Answers

  • User2103319870 posted

    AFAIK the AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider has been deprecated in latest version. Instead of that you can use AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider.

    To use that first install the HtmlAgilityPack using the nugget package manager like given below

    PM> Install-Package HtmlAgilityPack

    Then add the below codes in your webconfig file

    <configuration>
        <configSections>
            <sectionGroup name="system.web">
                <section name="sanitizer" requirePermission="false"
                         type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
            </sectionGroup>
        </configSections>
    
        <system.web>
            <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
                <providers>
                    <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
                </providers>
            </sanitizer>
          </system.web>
    </configuration>

    You will be able to user HTMLEditorExtender control after this

    Source URL

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 30, 2015 8:16 PM

All replies

  • User2103319870 posted

    AFAIK the AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider has been deprecated in latest version. Instead of that you can use AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider.

    To use that first install the HtmlAgilityPack using the nugget package manager like given below

    PM> Install-Package HtmlAgilityPack

    Then add the below codes in your webconfig file

    <configuration>
        <configSections>
            <sectionGroup name="system.web">
                <section name="sanitizer" requirePermission="false"
                         type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
            </sectionGroup>
        </configSections>
    
        <system.web>
            <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
                <providers>
                    <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
                </providers>
            </sanitizer>
          </system.web>
    </configuration>

    You will be able to user HTMLEditorExtender control after this

    Source URL

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 30, 2015 8:16 PM
  • User1909155429 posted

    it still does not work?

    mentions in web.config that the sanitizer is invalid child element !

    The HtmlAgilityPack.dll has been added to Bin folder and assembly identity to the web.config file.

    Saturday, January 31, 2015 3:57 PM
  • User2103319870 posted

    it still does not work?

    mentions in web.config that the sanitizer is invalid child element !

    The HtmlAgilityPack.dll has been added to Bin folder and assembly identity to the web.config file.

    If you are having trouble with Settting Up the HTMLEditorExtender then you can use other Editors available online.

    You can also check the below Editor Tool

    •   Tiny Mice - Easy to customise and to get started.

    Sample Code:

    <!-- Place inside the <head> of your HTML -->
    <script type="text/javascript" src="
    <your installation path>/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
    tinymce
    .init({
        selector
    : "textarea"
     
    });
    </script>

    HTML Mark Up:

    <!-- Place this in the body of the page content -->
    <form method="post">
        <textarea></textarea>
    </form>

    Check the below link for more details

    Saturday, January 31, 2015 10:00 PM
  • User1909155429 posted

    I eventually managed to get it to function!

    it does not like the sanitizer tag prefix name ?

    Do you know why HTMLEDITOR control flashes on screen during page postback.

    I am unable to prevent it happen with style=" display:none;" as a textbox attribute as some comments suggest?

    I want to show permanent on screen and not reset  visibility with button control ?

     

     

    Sunday, February 1, 2015 3:10 PM