Re: How to call HTML filter function written in javascript from Cute Editor?

  •  11-02-2008, 11:31 PM

    Re: How to call HTML filter function written in javascript from Cute Editor?

    Hi the HTML filter function looks like this but how to modify it so that i can remove more than one type of tag such as <form> and <object>? Thanks.

    <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>

View Complete Thread