mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Merge pull request #6301 from Codinlab/fixes/5593
Fixes #5593 : Allow disabling HtmlEncode on DynamicForms
This commit is contained in:
@@ -83,7 +83,6 @@ namespace Orchard.DynamicForms.Drivers {
|
||||
Name: "HtmlEncode",
|
||||
Title: "Html Encode",
|
||||
Value: "true",
|
||||
Checked: true,
|
||||
Description: T("Check this option to automatically HTML encode submitted values to prevent code injection.")),
|
||||
_CreateContent: shape.Checkbox(
|
||||
Id: "CreateContent",
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Orchard.DynamicForms.Elements {
|
||||
}
|
||||
|
||||
public bool HtmlEncode {
|
||||
get { return this.Retrieve(x => x.HtmlEncode, () => true); }
|
||||
get { return this.Retrieve(x => x.HtmlEncode); }
|
||||
set { this.Store(x => x.HtmlEncode, value); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user