Why do I get _moz_dirty?

183 views
Skip to first unread message

shapper

unread,
Dec 21, 2011, 4:04:30 PM12/21/11
to cled...@googlegroups.com
Hello,

I inserted two lines in CLE Editor and checked the generated code. I got the following:

This is
<br _moz_dirty="">
a test
<br _moz_dirty="">

Why do I get the _moz_dirty?

Thank You,
Miguel

Mike-O

unread,
Jan 22, 2012, 3:27:33 PM1/22/12
to cleditor
This is because the "designMode" implementation of your particular
browser does this. On other browsers it does not do this. You will
have to use PHP (or whatever language you are using) to clean up stuff
you don't like before it gets posted to the database. A simple...

$s = str_replace('_moz_dirty=""','',$s);

...would do fine.
Reply all
Reply to author
Forward
0 new messages