attribute_escape( ) and stripslashes() (1 post)

  1. AndreSC
    Posted 8 years ago #

    For a plugin that needs to cope with chinese names and characters I'm using:
    htmlentities(trim($value), ENT_QUOTES, "UTF-8");

    (for data fields that might also end up being post titles).

    When the data is being parroted back at the user via a form, is there any reason not to do something like :


    (I figure attribute_escape being native to the WordPress platform might deserve to be respected/retained but I don't want to show escaped 'quotes' e.g. \' as its a critical part of many chinese names)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.