Entering character sequences in a post

  • Unknown's avatar

    I want to include the character sequence   (XML for a non breaking space) in a post, in the middle of a sentence. But the editor keeps stripping these characters out of the post.

    For example, in my post, I’m trying to say “in the text editor, the non-breaking space looks like  ”

    How do I “escape ” this sequence so they appear in the post exactly as I’ve typed them? The closest I can get is, in the Text editor, to replace the & with &amp, which gives the & in the Visual editor, as expected. But then, when I add the rest, it all disappears, unless I include a space immediately before the ;

    Any ideas? I’ve tried everything I can think of, including

     and CDATA (which doesn't seem to be supported).

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi,

    Have you tried   or  ?

  • Unknown's avatar

    Oops! That doesn’t work here either. I’m trying again with quotes: “ ” or ” ”

  • Unknown's avatar

    My apologies! It works within my post on a sample within my blog, but does not work here.

  • Unknown's avatar

    And I can see that the characters I tried to type in my post don’t show up in my question either. In my post, I wanted to include the ampersand character followed by # then 160 then ;

    Let’s see if that shows up here. And sorry I can’t see the character you suggested I used either. Perhaps you could mention it by name instead of entering the character?

  • Unknown's avatar

    You could use the code for the ambersand or the hash, but they will be removed if you switch the editor to Visual. So better disable the code by enclosing part of it in span tags. But plain span tags will also be removed if you switch to Visual; so the opening span tag must include something that is meaningful while it doesn’t change anything. For example:
    &<span style="color:inherit;">#</span>160;

  • Unknown's avatar

    @justpi, thanks for the additional help! I will try that myself.

    @titch990, so sorry about that again. What I typed into my Support Forum response to you was an ampersand followed by the letters nbsp followed by a semicolon. If you view the source code of this forum page and search for some of the text in my reply, you will see what I had suggested that I’ve used for a test post on one of my blog pages.

  • Unknown's avatar

    Thanks everyone for the replies. I’ll try the various suggestions and see what works.

    The other irritating thing I found was that even if the characters looked OK in the Visual editor, they were lost when I made the post. It was almost as if you needed one level of ‘escape’ to get the characters from the text editor to the visual editor, then another level to get from the visual editor to the final post.

  • The topic ‘Entering character sequences in a post’ is closed to new replies.