Return str.replace (/\ s |\ xA0/g, ""); what does that mean?

 return str.replace(/\s|\xA0/g, "");
Apr.01,2021

remove spaces from str
where \ s is our common space , and \ xA0 is an uninterrupted space , mostly escaped spaces that appear in html.

your regular paragraph is more common in reptiles, which is used for Filter blank characters. In fact, you are missing a full-width \ u3000

.
Menu