Sign in

Non-breaking space in HTML block

  • This topic has 2 replies, 2 voices, and was last updated 3 months, 3 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #6364


    I’m using HTML block in Block Editor and tried to include the non-breaking space character (&nbsp;) in a paragraph to keep two words together in a <p> block. However, instead of a space between the two words, it shows an ampersand character.

    Alternatively, if I used the WYSIWYG Editor’s “HTML Source code”, the non-breaking space character (&nbsp;) gets stripped but replaced by normal space.

    Is there a work-around?



    Tomasz Dziuda


    It seems that some filtering does bad job with &nbsp; entities. I will need to fix it in the next release.

    Temporary solution can be use of & # 160; entity (remove spaces from it) – it works for me 🙂

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!


    Thanks for the workaround, Tomasz.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.