CuteEditor for ASP

Creates your own HTML Filter

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\>)/ig, "$2");
}
function CuteEditor_FilterCode(editor,code)
{
 return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/ig, "$2");
}
</script>