Hi, I'm trying to delete two unicodes in the text with javascript: &zwj
and &emsp
, but it doesn't work as I thought.
<div class="item" data-value="0399">‍ Fruits </div>
<div class="item" data-value="0359">‍ ‍ Banana And Apple </div>
<div class="item" data-value="0359">‍ ‍ Apple And Kiwi </div>
<div class="item" data-value="0359">‍ ‍ Kiwi And pineapple </div>
It's currently in this structure.
When there is only &emsp
, just take the text content or text of all nodes.
text.replace(/&emsp/g, '');
This eliminates all blank characters.
If ‍
and  
are present together,
text.replace(/‍ /g, ''))
text.replace(/‍| /g, ''))
text.replace(/ /g, ''))
There is no change in doing all three below.
How can I erase those ‍
and  
?
according to one's search
 
is Unicodeu2003
‍
is Unicodeu200D
Do I have to solve it using this?
Masters, please answer!
javascript regex
When text
is divided into ‍ Fruit
like this,
Cut the string with text.split(';')
and
I think it's the easiest way to get only the last element of an array.
914 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.