[wp-trac] [WordPress Trac] #42928: Formatting function wp_specialchars_decode doesn't work

WordPress Trac noreply at wordpress.org
Tue Dec 19 00:26:51 UTC 2017


#42928: Formatting function wp_specialchars_decode doesn't work
--------------------------+----------------------
 Reporter:  italooko      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  4.9.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @italooko and welcome to Trac.

 `wp_specialchars_decode()` working as described is correct.

 [https://developer.wordpress.org/reference/functions/wp_specialchars_decode/
 As the documentation reads:]
 > Converts a number of HTML entities into their special characters.
 > Specifically deals with: &, <, >, ", and ‘.

 If you want the behaviour of the PHP function `html_entity_decode()` call
 it directly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42928#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list