WordPress.org

Ready to get started?Download WordPress

Forums

Writing a plugin: htmlentities problem (1 post)

  1. Pennywise83
    Member
    Posted 5 years ago #

    Hi,
    I'm writing a plugin and I have a big problem with htmlentities.

    I have a form and I need to check out all the special characters inserted by a user.

    For example: I have a field called "title" and I want to insert something like this:

    -- L'uomo in più "text between quotes" --

    In this string are present the following special characters
    '
    "
    ù

    I need to show this value in a preview window and then I need to insert in the DB.

    If I use htmlentities() i have strange output like this: ù

    There is a filter to clean the special characters?

Topic Closed

This topic has been closed to new replies.

About this Topic