--- C:/Documents and Settings/Eric.Zarko/Desktop/tinymce-5.x-1.9/tinymce/tinymce.module	Tue Jul 31 07:40:36 2007
+++ C:/Documents and Settings/Eric.Zarko/Desktop/tinymce.module.txt	Tue Aug 21 17:09:36 2007
@@ -93,0 +94 @@
+  $init['cleanup_callback'] = 'myCustomCleanup';
@@ -119,0 +121,27 @@
+
+  function myCustomCleanup(type, value) {
+    switch (type) {
+      case "get_from_editor":
+        if(tinyMCE.isGecko){
+          value=tinyMCE.regexpReplace(value,'<b( [^>]*)?>','<strong$1>','gi');
+          value=tinyMCE.regexpReplace(value,'<i( [^>]*)?>','<em$1>','gi');
+          value=tinyMCE.regexpReplace(value,'</b>','</strong>','gi');
+          value=tinyMCE.regexpReplace(value,'</i>','</em>','gi');
+        }
+        break;
+
+      case "get_from_editor_dom":
+/*
+ * should use the DOM here to do this more cleanly than above
+ * something like this pseudocode:
+ *      foreach node in find_nodes_by_type('b')
+ *        node.type = 'strong'
+ *      foreach node in find_nodes_by_type('i')
+ *        node.type = 'em'
+ */
+        // Do custom cleanup code here
+        break;
+    }
+
+    return value;
+  }
