Re: removing span tags

  •  03-23-2010, 10:38 PM

    Re: removing span tags

    Hi mushroom,
     
    Try
     
    1. <script>   
    2. function CuteEditor_FilterHTML(editor,code)   
    3. {   
    4.  return code.replace(/(<span[^\>]*\>)((\n|\r|.)*?)(?:<\/span>)/i, "$2");   
    5. }   
    6. function CuteEditor_FilterCode(editor,code)   
    7. {   
    8. return code.replace(/(<span[^\>]*\>)((\n|\r|.)*?)(?:<\/span>)/i, "$2");   
    9. }   
    10. </script>  
    Regards,
     
    ken
View Complete Thread