Zero Width No-Break Space and Zero Width Space

When the user writes a regular text and adds some formats (Bold, Italic, Underline, or color) then presses the enter key to generate a new line and add a bullet list, when the user wants to remove the formats, the editor generates a character code (you can see it in the video), this character code then generates a question mark after using an 'Update' action (in our app). 

Zero Width Space  Zero Width No-Break Space

The video is on the "QuestionMarkCode.rar"


Attachment: QuestionMarkCode_74d3a217.rar

1 Reply 1 reply marked as answer

RK Revanth Krishnan Syncfusion Team January 29, 2021 01:21 PM UTC

Hi Eliseo, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “When update action is clicked in our application the zero width space and zero width no-break space added when using the list with formats”. 
 
This issue can be resolved by replacing Unicode characters in the Rich Text Editor value with empty content. We have prepared a sample for your reference, 
 
Code Snippet: 
 
public removeUnicode(): void { 
  this.rteObj.value = this.rteObj.value.replace(/[\u200B\uFEFF]/g""); 
} 
 
 
Please check the above code snippet and the sample and let us know if it resolves your issue. 
 
Regards, 
Revanth 


Marked as answer
Loader.
Up arrow icon