如何使用不可见字符来分割文本以及如何获取它的JS表示?

Dim*_*iwa 1 javascript string spacing

在 LinkedIn 上,我想添加不可见字符,以便可以拆分文本并使用数据生成简历。

我正在寻找不可见字符及其 JavaScript 表示形式的列表。

我应该使用什么未使用的不可见字符来分割文本?

小智 10

我找到了一个网站:emptycharacter.com

\n
Unicode HTML    Description Example\nU+0020  &#32    Space   [ ]\nU+00A0  &#160   No-Break Space  [ ]\nU+2000  &#8192  En Quad [\xe2\x80\x80]\nU+2001  &#8193  Em Quad [\xe2\x80\x81]\nU+2002  &#8194  En Space    [\xe2\x80\x82]\nU+2003  &#8195  Em Space    [\xe2\x80\x83]\nU+2004  &#8196  Three-Per-Em Space  [\xe2\x80\x84]\nU+2005  &#8197  Four-Per-Em Space   [\xe2\x80\x85]\nU+2006  &#8198  Six-Per-Em Space    [\xe2\x80\x86]\nU+2007  &#8199  Figure Space    [\xe2\x80\x87]\nU+2008  &#8200  Punctuation Space   [\xe2\x80\x88]\nU+2009  &#8201  Thin Space  [\xe2\x80\x89]\nU+200A  &#8202  Hair Space  [\xe2\x80\x8a]\nU+2028  &#8232  Line Separator  [\xe2\x80\xa8]\nU+205F  &#8287  Medium Mathematical Space   [\xe2\x81\x9f]\nU+3000  &#12288 Ideographic Space   [\xe3\x80\x80]\n
Run Code Online (Sandbox Code Playgroud)\n

这与 unicode 中的字符相同:

\n

\r\n
\r\n
Unicode HTML    Description Example\nU+0020  &#32    Space   [ ]\nU+00A0  &#160   No-Break Space  [ ]\nU+2000  &#8192  En Quad [\xe2\x80\x80]\nU+2001  &#8193  Em Quad [\xe2\x80\x81]\nU+2002  &#8194  En Space    [\xe2\x80\x82]\nU+2003  &#8195  Em Space    [\xe2\x80\x83]\nU+2004  &#8196  Three-Per-Em Space  [\xe2\x80\x84]\nU+2005  &#8197  Four-Per-Em Space   [\xe2\x80\x85]\nU+2006  &#8198  Six-Per-Em Space    [\xe2\x80\x86]\nU+2007  &#8199  Figure Space    [\xe2\x80\x87]\nU+2008  &#8200  Punctuation Space   [\xe2\x80\x88]\nU+2009  &#8201  Thin Space  [\xe2\x80\x89]\nU+200A  &#8202  Hair Space  [\xe2\x80\x8a]\nU+2028  &#8232  Line Separator  [\xe2\x80\xa8]\nU+205F  &#8287  Medium Mathematical Space   [\xe2\x81\x9f]\nU+3000  &#12288 Ideographic Space   [\xe3\x80\x80]\n
Run Code Online (Sandbox Code Playgroud)\r\n
\r\n
\r\n

\n