KindEditor利用插件修改clob取数据操作

 

 // Store Datebase ;
   public String strStoreDeal(String s) {
     String strReturn;
     strReturn = s;
     if(strReturn == null) strReturn = "" ;
     strReturn = strReturn.trim();
     strReturn = strReturn.replaceAll("&", "&");
     strReturn = strReturn.replaceAll("'", "´");
     strReturn = strReturn.replaceAll("--", "");
     strReturn = strReturn.replaceAll("<", "<");
     strReturn = strReturn.replaceAll(">", ">");
     strReturn = strReturn.replaceAll("\"", """);    
     //strReturn = strReturn.replaceAll(chr(10) , "
") ;
     return strReturn;
   }

   // Disp Database ;
   public String strDispDeal(String s) {
     String strReturn;
     strReturn = s;
     if(strReturn == null) strReturn = "" ;
     strReturn = strReturn.trim();
     //strReturn = strReturn.replaceAll("
" , chr(10)) ;
     strReturn = strReturn.replaceAll("´", "'");
     strReturn = strReturn.replaceAll("<", "<");
     strReturn = strReturn.replaceAll(">", ">");
     strReturn = strReturn.replaceAll("&", "&");
     return strReturn;
   }
   public String strDispWeb(String s) {
     String strReturn ;
     strReturn = s ;
     if(strReturn == null) strReturn = "" ;
     strReturn = strReturn.replaceAll("/n", "
") ;
     return strReturn ;
   }

java 代码
  1. < input type="hidden" name="contents" value="<!---->" />   
  2.   
  3.                         <script type=< span="">"text/javascript" src="./KindEditor.js"></script>   
  4.                         <script type=< span="">"text/javascript">   
  5.                             var editor = new KindEditor("editor");   
  6.                             editor.hiddenName = "contents";   
  7.                             editor.editorWidth = "700px";   
  8.                             editor.editorHeight = "400px";   
  9.                             editor.show();   
  10.                             function KindSubmit() {   
  11.                                 editor.data();   
  12.                             }   
  13.                         </script>  

      

你可能感兴趣的:(JavaScript)