Sign in

Non-breaking space in HTML block

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

    Hi,

    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?

    Thanks

     

    #6401
    Tomasz Dziuda

    Hi,

    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!

    #6404
    shaun2k

    Thanks for the workaround, Tomasz.

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