The content in codemirror textarea shows red dots between albhabets. How can I get rid of this?
These indicate non-printing characters in the input string. You can hover over them to see which character. If you clean up your input data by removing such characters, CodeMirror won’t show them.
1 Like
It is showing the character \u0 charcter. How can I replace that?
I tried xmlString.replace(’\u0000’, ‘’) but failed
If you give replace
a string as first arg, it’ll only replace a single instance. xmlString.replace(/\0/g, '')
should work