In Sitefinity, I have a situation where I set &
as value in Short text field. Then the value gets changed to &
. I need to keep the value as &
in Short text box type.
Asked
Active
Viewed 70 times
2

mzjn
- 48,958
- 13
- 128
- 248

Sami Hussain
- 179
- 3
- 9
-
What Sitefinity version is this? I can't reproduce the issue. Do you set the value in the SF backend or via the API? – Veselin Vasilev Aug 03 '18 at 00:42
-
I am using Sitefinity version 10.1.6502.0 and setting the values from backend. But my client wants values in plain text on sitefinity backend. – Sami Hussain Aug 03 '18 at 06:48
-
There must be something custom there, normally this works just fine for text fields. – Veselin Vasilev Aug 03 '18 at 07:15
-
This is happening for all the built in and custom modules and fields – Sami Hussain Aug 03 '18 at 07:34
-
The only thing I could suggest is - try this on a brand new project of the same version or upgrade to a later version. – Veselin Vasilev Aug 06 '18 at 02:28
1 Answers
0
This is a known bug in Sitefinity 10.1, please see this article for a workaround
In short, you should:
Go to Administration >> Settings >> Advanced >> Data >> Data Processors >> XSS sanitizer and uncheck the "Enabled" checkbox. Keep in mind, that by this the sanitizing of the input is stopped. Also, the previously created items with an ampersand, will not automatically change to '&', and this should be done manually.

Joel Min
- 3,387
- 3
- 19
- 38