• Hi WordPress Support Team

    I hope you can help, I want to use an action to override how (what I think) some of the core functionality works.

    I want to preserve / keep the ampersand symbol when creating or editing, Posts, CPTS, and custom taxonomies. All the other stuff related to slugs is fine. I just want the entry to be saved to the db as

    &
    instead of
    &amp.;

    The reason I want to work this out is that the ajax search plugin is literally searching and does not support synonyms in that way.

    I hope this is something that can be added to the functions.php file.

    Many thanks for your help on this.

    Regards

    Paul

    • This topic was modified 8 years, 3 months ago by pdbemail.
    • This topic was modified 8 years, 3 months ago by pdbemail.
    • This topic was modified 8 years, 3 months ago by pdbemail.
    • This topic was modified 8 years, 3 months ago by pdbemail.
Viewing 2 replies - 1 through 2 (of 2 total)
  • the ajax search plugin

    Which plugin is that? Where did you get it from? Have you asked them about this?

    And, you used the Tag ‘HTML entities’, please review that as done in PHP:

    https://php.net/manual/en/function.htmlentities.php

    Thread Starter pdbemail

    (@pdbemail)

    Sorry I am not a developer, I though that tag would be ok. Can you point me in the right direction to use a wordpress action to modify the behaviour of saving a post title or taxonomy name. I think that the sanitisation uses something like wp kses (https://ottopress.com/2010/wp-quickie-kses/). Any info I find online relate to sanitising tags though rather than form input fields. And that is what I am hoping to learn about here.

    Any advice you can offer would be appreciated. I have filed a ticket with the plugin developer (wp-dreams[dot]com/articles/2012/11/ajax-search-pro-for-wordpress/), but in case he cannot resolve it I would like to find a work around.

    It is not really viable to manually change the entries on the db, as the site I am building will have many posts & taxonomy terms and will be updated frequently.

    Best regards

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Keep “&” after input sanitisation’ is closed to new replies.