Entering an ampersand in a text field is disastrous
I've discovered that entering an ampersand in a text datatype (textstring, textbox multiple, simple editor) and hitting add or update causes the item being edited and all other items to disappear.
If the other items have been saved, they will reappear, but only after refreshing the page.
After an ampersand has been entered, the entire umbraco admin has to be refreshed, otherwise adding other items will fail in the same way, even without entering an ampersand.
I tested several other special characters but didn't find any other problems. Maybe the package could escape ampersands somehow?
Thanks for your quick resolution, Sascha. This bug is fixed, but I noticed a new problem in the Simple Editor datatype that might be related to the fix. After Simple Editor content with some markup is published, the markup's angle brackets are escaped when viewing it again in the admin. It's published correctly, but escaped when displayed in the admin afterwards.
I've run across a problem that might be related to this. A textfield in an embedded content property will not take the string $1 .... as in "someone gave me $1 million". Upon clicking the "update" button the $1 is converted to
>
. I replaced the dollar sign with the equivalent ascii code
$
and while that is rendered into a dollar sign in the textfield on the rendered page it comes out as the raw ascii code. I'm using an xslt macro to display the embedded content items and using the disable-output-escaping flag makes no difference to the output.
when I put <sometext> into a text field then it is rendered as an html item in Content Editor. So it breaks the "Edit" and "Delete" functionalities because of the js code:
Entering an ampersand in a text field is disastrous
I've discovered that entering an ampersand in a text datatype (textstring, textbox multiple, simple editor) and hitting add or update causes the item being edited and all other items to disappear.
If the other items have been saved, they will reappear, but only after refreshing the page.
After an ampersand has been entered, the entire umbraco admin has to be refreshed, otherwise adding other items will fail in the same way, even without entering an ampersand.
I tested several other special characters but didn't find any other problems. Maybe the package could escape ampersands somehow?
I should mention I'm using umbraco 4.5.2 and Firefox 3.6. (I tried to edit my comment, but got an xslt error from the forum code. Sheesh.)
Hi Keith,
this should be resolved with version 1.08, please have a look and let me know. :)
I've added some html encoding when saving and reloading, which seems to do the trick quite nice.
Sascha
It works for me in 1.09
Thanks for your quick resolution, Sascha. This bug is fixed, but I noticed a new problem in the Simple Editor datatype that might be related to the fix. After Simple Editor content with some markup is published, the markup's angle brackets are escaped when viewing it again in the admin. It's published correctly, but escaped when displayed in the admin afterwards.
Oh yeah, that might be because I'm kind of double encoding it now... will take a look in a bit. ;)
This should be resolved in the current version (1.1).
Hi,
I've run across a problem that might be related to this. A textfield in an embedded content property will not take the string $1 .... as in "someone gave me $1 million". Upon clicking the "update" button the $1 is converted to
. I replaced the dollar sign with the equivalent ascii code
and while that is rendered into a dollar sign in the textfield on the rendered page it comes out as the raw ascii code. I'm using an xslt macro to display the embedded content items and using the disable-output-escaping flag makes no difference to the output.
Hi,
when I put <sometext> into a text field then it is rendered as an html item in Content Editor. So it breaks the "Edit" and "Delete" functionalities because of the js code:
is working on a reply...