您可能需要取消对输出的转义。看看html_entity_decode 或类似功能,然后再输出到屏幕。
$orig = "I\'ll \\"walk\\" the <b>dog</b> now";
$a = htmlentities($orig);
$b = html_entity_decode($a);
echo $a; // I\'ll "walk" the <b>dog</b> now
echo $b; // I\'ll "walk" the <b>dog</b> now
<小时>
html_entity_decodefunction MKWD_Display_Westmor_Bottom_Left() {
$westmor_customers_options = get_option( \'westmor_customers_option_name\' );
return html_entity_decode ( $westmor_customers_options[\'homepage_bottom_left_widget_0\'] );
}
<小时>
htmlspecialchars_decode
function MKWD_Display_Westmor_Bottom_Left() {
$westmor_customers_options = get_option( \'westmor_customers_option_name\' );
return htmlspecialchars_decode ( $westmor_customers_options[\'homepage_bottom_left_widget_0\'] );
}
<小时>
wp_specialchars_decode
function MKWD_Display_Westmor_Bottom_Left() {
$westmor_customers_options = get_option( \'westmor_customers_option_name\' );
return wp_specialchars_decode ( $westmor_customers_options[\'homepage_bottom_left_widget_0\'] );
}
<小时>
stripslashes
function MKWD_Display_Westmor_Bottom_Left() {
$westmor_customers_options = get_option( \'westmor_customers_option_name\' );
return stripslashes ( $westmor_customers_options[\'homepage_bottom_left_widget_0\'] );
}