Created
September 5, 2018 09:30
-
-
Save Flimm/2f127cf9731564e121d8381a355bbe51 to your computer and use it in GitHub Desktop.
Examples of wp_specialchars_decode calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo( wp_specialchars_decode( "He's been \"busy\", very busy." ) ); | |
// He's been "busy", very busy. | |
echo( wp_specialchars_decode( "He's been "busy", <i>very</i> busy." ) ); // defaults to ENT_NOQUOTES | |
// He's been "busy", <i>very</i> busy. | |
echo( wp_specialchars_decode( "He's been "busy", <i>very</i> busy.", ENT_COMPAT ) ); | |
// He's been "busy", <i>very</i> busy. | |
echo( wp_specialchars_decode( "He's been "busy", <i>very</i> busy.", ENT_QUOTES ) ); | |
// He's been "busy", <i>very</i> busy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment