Bryntum TaskBoard 5.0.6
Sorry for the repetition if this has been asked and answered already. I did search the forum but did not find a similar topic.
In one configuration of the board, we display people as the columns. When a person's name contains a single quotation mark, like O'Reilly and O'Malley, the board is double encoding the single quotation mark. On the first pass it converts (') to (') and on the second pass it converts (') to (') which renders as ('). We have tested using each of the characters in the code snippet below and have observed the same double encoding issue.
Looking into the code there is a method:
static initHtmlEntities(mappings) {
mappings = mappings || {
'&': '&',
'>': '>',
'<': '<',
'"': '"',
"'": '''
};
...
This looks like a simple bug. If the double encoding is changed to single encoding, then it will display the special characters correctly when rendered into the column names.
If this is not a bug, or you have specific reason to double encode special characters, is there a way to override this behavior, via configuration? The method initHtmlEntities() takes an argument mappings, but I could not find a place where you allow this argument to be passed.
The screen shot shows a double quotation mark in the data for the column. When debugging, the column model contains "aTodoOwner, a but when you render to the DOM, the problem happens.
Observed the same behavior for the following characters:
single quotation mark
double quotation mark
ampersand
greater than
less than