Skip to content

Dialog buttons gets double encoding #1207

@mikaelnet

Description

@mikaelnet

Expected Behavior

When creating dialog boxes, buttons should have their labels as they are written in the script.

Actual Behavior

When writing content that needs encoding, such characters gets double encoded resulting in incorrect content being displayed. I'm not sure if this is a problem with SPE or if it is in Sitecore itself.

Steps to Reproduce the Problem

View the content of the buttons when firing this dialog from the console or the ISE:

Show-ModalDialog -Control 'ConfirmChoice' -Parameters @{ btn_0='< Prev'; btn_1='Next >'; btn_2='<&">'; cp='Wizard'; te='Wizard step' }

Tested on 6.0 and 6.1.1

  • Tested issue with clean install of Sitecore and the latest available version of SPE.

  • Asked questions on the Sitecore Slack Chat channel.

  • Reviewed questions and answers on the Sitecore Stack Exchange.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions