Parse the text when loading from db into CE, and comment out any JS functions. Then the JS won't run in your Editor.