Open GoogleCodeExporter opened 8 years ago
tags are not encoding properly after saving.let me explain this with one
example.
ex:<test> tag converts into '<test>' by the editor,
but ideally editor should convert the code into &<test&>, that way
editor will load the tag as <test>
Original comment by sumanth....@gmail.com
on 28 Jan 2009 at 2:06
I've been experimenting with this today after running into it myself:
* "<xxxx yy zz" - no closing ">" - shows as "yy zz".
* "< xxxx yy zz" - with space after "<" and no closing ">" - shows correctly.
* "x<*>y" - where * is any string, even including whitespace - shows as "xy".
Original comment by chad+goog@sapphirepaw.org
on 23 Jun 2010 at 3:41
Actually, I may just be a moron: if I encode the textarea contents with
htmlspecialchars first, then the contents are properly restored. Otherwise,
the browser unencodes the </> when displaying the textarea, and then jwysiwyg
gets e.g. "<evil> and real" as the string for this.initialContent. There's
probably no way to sort it out after it's been damaged like that.
Original comment by chad+goog@sapphirepaw.org
on 23 Jun 2010 at 4:03
Original issue reported on code.google.com by
sumanth....@gmail.com
on 20 Jan 2009 at 6:51