Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying unicode characters in codemirror

I have xml with lots of unicode characters. This is coming out of a database where original ¶ is represented as ¶ (which in turn is correctly rendered as ¶ in HTML). However, CodeMirror displays as ¶. Is there some way of having CodeMirror render these sequences as HTML does, ie ¶?

like image 403
peter Avatar asked Jun 15 '26 16:06

peter


1 Answers

Figured out a solution -- basically convert the entities before submitting to codeMirror. See Value &# to unicode convert

like image 163
peter Avatar answered Jun 17 '26 23:06

peter