This PR addresses the issue of special characters not being rendered correctly in clues and chat messages.
The changes made are as follows:
Updated the decodeHtml function in src/components/Player/ClueText.js to correctly handle special characters. This involved using a different method to decode HTML entities and adding additional handling for special characters.
Updated the renderMessageText function in src/components/Chat/Chat.js to correctly render special characters. This involved adding additional handling for special characters and ensuring that the text is being correctly decoded before it's rendered.
These changes should ensure that special characters like "Très" and "vis-à-vis" are displayed correctly in both clues and chat messages.
Fixes #278.
To checkout this PR branch, run the following command in your terminal:
This PR addresses the issue of special characters not being rendered correctly in clues and chat messages.
The changes made are as follows:
decodeHtml
function insrc/components/Player/ClueText.js
to correctly handle special characters. This involved using a different method to decode HTML entities and adding additional handling for special characters.renderMessageText
function insrc/components/Chat/Chat.js
to correctly render special characters. This involved adding additional handling for special characters and ensuring that the text is being correctly decoded before it's rendered.These changes should ensure that special characters like "Très" and "vis-à-vis" are displayed correctly in both clues and chat messages.
Fixes #278.
To checkout this PR branch, run the following command in your terminal: