WordPress.org

Ready to get started?Download WordPress

Forums

P2
Apostrophe in title causes issues (2 posts)

  1. Manuel Schmalstieg
    Member
    Posted 1 year ago #

    I encounter an issue when I use the apostrophe in a post title, and try to edit it directly through the in-page interface (rather than the WordPress backend).

    Example: I create a post with the following title:

    That's the title

    And the following content:

    That's the content

    You will note that I use the simple "typewriter apostrophe", easy to type with the keyboard, equivalent to ’ in html, U+0027 in Unicode.

    When I save the post, WP will turn that apostrophe from «'» into «’» (a typographic apostrophe, aka U+2019 in Unicode). That's a very nice thing, since I appreciate good typographic style.

    The problem, if I try to edit the post through the P2 frontend, is that the apostrophe in the title field is rendered as a HTML entity, '. The same apostrophe in the content field is rendered as a "typewriter apostrophe".

    If I edit and save the article multiple times, things are getting messy: the title will now look like this:

    That's the title

    And after the next save:

    That's the title

    And so on.

    Notes: the language setting of my site is French, and I am using the "Markdown for P2" plugin (the only active plugin, currently).

    http://wordpress.org/extend/themes/p2/

  2. Manuel Schmalstieg
    Member
    Posted 1 year ago #

    Ok, I cannot explain the problem here since this comment form is stripping off the problematic HTML tags :/

    So, here is a picture showing the problem:

    http://sandbox.4o4.ch/wp/p2-apostrophe.png

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags