Forums

Special characters in pages (7 posts)

  1. raptorNL
    Member
    Posted 2 years ago #

    Since I upgraded to WP 2.3, I have a rather annoying problem with pages. When I use HTML entities for special charachters (I use < and > a lot) the next time I edit that page, all those characters are there in plain, i.e. the HTML entities are gone.

    So say, I insert & lt;span& gt; (without the spaces) in a page and then save it, the next time I want to edit it, it's converted to <span> somehow. As long as I don't save it now, I'm alright. But once I do, all my HTML entities are gone and conveted to the plain character they represent.

    Peculiar enough, this does not affect posts, only pages. It happens on both my production site as my local test installation. Even on a clean, fresh installation from scratch, so without plugins, custom themes or anything like that.

  2. Stevie212
    Member
    Posted 2 years ago #

    Are you using code view or the WYSIWYG view? you must switch off the view that lets you format you posts, like making letters bold etc (thats WYSIWYG), turn that off and use code view, it is selectable in the "code" tab. If you use the default WYSIWYG option naturally it will screw up you HTML tags.

    http://trac.wordpress.org/ticket/5084

  3. raptorNL
    Member
    Posted 2 years ago #

    I never used the WYSIWYG editor. Always the code editor. Just for kicks, I enabled that monstrosity and disabled it again (maybe WordPress wasn't entirely sure about it?) but to no avail.

    And it doesn't screw up my HTML tags, it screws my entities.

    If I have some HTML code in my page escaped with entities (code examples), it makes HTML out of it.

  4. Stevie212
    Member
    Posted 2 years ago #

    Okay, then you should go to the trac and report your problem on that same page I linked, you can login with your WP.org username/password there, reopen the support ticket and explain your problem thoroughly.

    Hope this helps.

  5. raptorNL
    Member
    Posted 2 years ago #

    Will do that.

  6. Stevie212
    Member
    Posted 2 years ago #

    Hmm if it is an obvious problem, I wonder why WP developers have closed the ticket, they shouldn't have. But I assume they misinterpreted it as an issue with the WYSIWYG editor.

  7. raptorNL
    Member
    Posted 2 years ago #

    Ticket reopened. Hope someone will look into it, because I can't really change a page with entities in it right now...

Topic Closed

This topic has been closed to new replies.

About this Topic