Update superboxselect.js to version 1.6 and add HTML entity encoding #16702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does it do?
Updates superbox select to the latest version from Dan Humphrey (which is still old, just newer). I've also added an
htmlEncode
function to the value and display fields, so they do not break the manager if you use special characters.Why is it needed?
Using special characters in the value or display field of the superbox select can lead to broken functionality.
How to test
The easiest way to test is to create a multi-list TV and add special characters to the values. For my testing I was having the most issues with
"
,&
, and<
characters in various combinations. If you test the output and save before and after this fix, you will find that the output and the stored results are not what you put in. After this fix, the output and stored results will match your options.Related issue(s)/PR(s)
Found while working on a client site.