Permalink
Browse files

Fixed issue with BOM characters that doesn't get removed correctly.

  • Loading branch information...
1 parent ad3eb09 commit f63c1b318c074c32a10211614ff095612195c7f4 @spocke spocke committed Apr 7, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 jscripts/tiny_mce/classes/dom/Serializer.js
@@ -334,6 +334,10 @@
htmlParser.parse(args.getInner ? node.innerHTML : tinymce.trim(dom.getOuterHTML(node), args), args)
);
+ // Replace all BOM characters for now until we can find a better solution
+ if (!args.cleanup)
+ args.content = args.content.replace(/\uFEFF/g, '');
+
// Post process
if (!args.no_events)
onPostProcess.dispatch(self, args);

0 comments on commit f63c1b3

Please sign in to comment.