# &nbsp; not working

**URL:** <https://forum.getkirby.com/t/nbsp-not-working/1102>\
**Category:** Questions\
**Tags:** v2\
**Created:** [May 18, 2015, 12:42pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102 "2015-05-18T12:42:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![takaminacchan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/takaminacchan/32/234_2.png) [@takaminacchan](https://forum.getkirby.com/u/takaminacchan)\
**Post date:** [May 18, 2015, 12:42pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102/1 "2015-05-18T12:42:25Z")

</div>

Sooo I just realized & nbsp ; (remove the spaces - I’m removing them to explain the issue) doesn’t work in Kirbytext, which is a problem because I need to be able to display these correctly for a French-language site.

Expected behavior vs actual behavior:  
If I write “Bonjour& nbsp ;?” I should get “Bonjour ?” with the question mark “attached” to the “Bonjour” (it can’t get thrown to the next line, “Bonjour ?” behaves like a single word - quite like “Bonjour?” would).  
Instead, I get “Bonjour ?” but the question mark may end up on the next line depending on how the text is being displayed (the question mark is its own word).

Upon inspection of the rendered html, it turned out the “& nbsp ;” symbol wasn’t present (whether it’s rendered by kirbytext() or html()). So I assume this is an issue of parsing?

Any clue as to how to circumvent this?

---

<div class="post-metadata">

**Author:** ![DieserJonas](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dieserjonas/32/10873_2.png) [@DieserJonas](https://forum.getkirby.com/u/DieserJonas)\
**Post date:** [May 18, 2015, 12:50pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102/2 "2015-05-18T12:50:18Z")

</div>

You may just copy the non-breaking-space you’re trying to use from [this wikipedia page](http://en.wikipedia.org/wiki/Non-breaking_space) (first sentence). This way of inserting it directly should work just fine.

---

<div class="post-metadata">

**Author:** ![takaminacchan](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/takaminacchan/32/234_2.png) [@takaminacchan](https://forum.getkirby.com/u/takaminacchan)\
**Post date:** [May 18, 2015, 12:55pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102/3 "2015-05-18T12:55:22Z")

</div>

Okay, thanks a lot, it seems to be working (the code is & #160; without spaces). Cheers!

---

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [May 18, 2015, 1:54pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102/4 "2015-05-18T13:54:21Z")

</div>

If you are a Mac user you can type a non-breakable space by hitting Option-Space. It it saved when the page is submitted.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:17pm UTC](https://forum.getkirby.com/t/nbsp-not-working/1102/5 "2025-02-06T17:17:22Z")

</div>

Archived on February 6, 2025, 5:17pm UTC


