Corrects problem when displaying an apostrophe character in the ChatConversationPanel (replace "'" by "&39;").

cusax-fix
Vincent Lucas 14 years ago
parent c6016b808c
commit 2f7dc3dc34

@ -441,6 +441,12 @@ public String processMessage(ChatMessage chatMessage, String keyword)
if (contactDisplayName == null
|| contactDisplayName.trim().length() <= 0)
contactDisplayName = contactName;
else
{
// for some reason &apos; is not rendered correctly from our ui,
// lets use its equivalent. Other similar chars(< > & ") seem ok.
contactDisplayName = contactDisplayName.replaceAll("&apos;", "&#39;");
}
String contentType = chatMessage.getContentType();
long date = chatMessage.getDate();

Loading…
Cancel
Save