Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: removing span tags
Re: removing span tags
03-23-2010, 10:38 PM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: removing span tags
Reply
Quote
Hi mushroom,
Try
<script>
function
CuteEditor_FilterHTML(editor,code)
{
return
code.replace(/(<span[^\>]*\>)((\n|\r|.)*?)(?:<\/span>)/i,
"$2"
);
}
function
CuteEditor_FilterCode(editor,code)
{
return
code.replace(/(<span[^\>]*\>)((\n|\r|.)*?)(?:<\/span>)/i,
"$2"
);
}
</script>
Regards,
ken
View Complete Thread