… in Cobalt.Messages.Data.js

Is there a way to enter ther special html characters in the messages bundle ? I tried using … inside a message but it renders the text instead of an ellipsis. Thanks Venkat

Answers

  • According to [Character entity references in HTML 4][1] , the horizontal ellipsis is character U+2026
    `…` is an HTML encoding, but you want a JavaScript encoding for Cobalt.Messages.Data.js. Use the \u escape sequence in the JavaScript string literal to display this characters ("\u2026"). [1]:
    http://www.w3.org/TR/REC-html40/sgml/entities.html