1
Vote

HtmlEncode Macro Property Value

description

When using the text or textMultiLine property types, if I use any HTML tags within the textarea, they are saved to the "UMBRACO_MACRO" tag with their literal value (un-encoded) - this causes an issue when you try to use the value in XSLT.
 
I have attached a patch for the MacroPickerDataEditor class to HtmlEncode the property values in the CreateUmbracoMacroTag method.
 
The value can then be decoded in the XSLT using the "disable-output-escaping" attribute.
 
I have only tested this patch with Umbraco v4.0.3.

file attachments

comments