

The glyph is a Nobreak composition of the glyphs.

This character is a Space Separator and is commonly used, that is, in no specific script. It belongs to the block Latin-1 Supplement in the Basic Multilingual Plane. The most common: \x20 standard space or \s. U+00A0 was added to Unicode in version 1.1 (1993). let btnReplace document. We are displaying the result in the h1 element using the innerText property. The new string returned by this method will be stored in the result variable. As a result, it will replace all occurrences of nbsp with space. Edit There are a few ways how to do it: by pasting code directly into JavaScript string - some codes could be invisible without hex editor, with innerText or textContent property and unicode character code, with innerHTML property and html unicode code (e.g. We are calling replace () method and passing regex and space as parameters. Unlike traditional space character, two or more consecutive NBSPs do not get collapsed to a single one. If you don't want to use innerHTML, you can use a hexadecimal escape. Binding non-breaking space to HTML from JavaScript example. Lists Unordered Lists Ordered Lists Other Lists HTML Block & Inline HTML Classes HTML Id HTML Iframes HTML JavaScript HTML File Paths HTML Head HTML Layout HTML Responsive HTML Computercode HTML Semantics HTML Style Guide HTML Entities HTML Symbols HTML Emojis HTML Charset HTML URL Encode HTML vs. 2 days ago NBSP stands for Non-Breaking Space.
