Re: Restrict HTML

  •  06-14-2009, 10:26 PM

    Re: Restrict HTML

    Hi FatMooseHenry,
     
     

    Creates your own HTML Filter


    The following code shows how to create your own HTML Filter to remove any tag you don't want. In this example, all form tags will be removed automatically. All you need to do is adding the code below into the bottom of the page.


    <script>
    function CuteEditor_FilterHTML(editor,code)
    {
     return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
    }
    function CuteEditor_FilterCode(editor,code)
    {
     return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
    }
    </script>
     
     
    Regards,
     
    Ken
View Complete Thread