Re: Block <img> tags

  •  01-12-2009, 9:02 AM

    Re: Block <img> tags

    Ok, so I added the following at the bottom of the page where I have my editor, I copy/paste some html with <img> tags in it.  When I save the Editor's content to my DB, I still see the <img> tags in it.  Any ideas?
     

    <script type="text/javascript">

    function CuteEditor_FilterHTML(editor, code) {

    return code.replace(/(<img[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");

    }

    function CuteEditor_FilterCode(editor, code) {

    return code.replace(/(<img[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");

    }

    </script>

View Complete Thread