How do you test if a character/HTML entity is line-breaking or non-breaking using JS?
examples of line-breaking characters:
- the good ol'
< that's a space
-
examples of non-breaking characters are:
< non-breaking space‑
< non-breaking hyphen⁠
< word-joiner
I know there are many more HTML entities that are line/non-breaking characters, I have no clue what they are. How do I check if one is line-breaking without knowing before hand?