我正忙着在 wordpress 上为我的多商店 woocommerse 网站写商店描述。
我正在使用 wp_editor。
但我无法保存造型部分。粗体,斜体,换行符,没有任何保存,它只是保存应该在 
的地方。<strong></strong>, <br>
链接也保存为文本
我调用 wp_editor 的代码:
$content = stripslashes(esc_textarea( $storediscrip ));
$editor_id = 'dokan_store_discrip';
$settings = array('editor_height' => 100, 'quicktags' => false, 'media_buttons' => false, 'tinymce' => true, 'teeny'=> false, 'editor_class' => 'dokan_store_discrip', 'wpautop' => true);
wp_editor( $content , $editor_id, $settings );
我要回显的代码:
<div> <?php echo wpautop( $store_info['store_discrip']); ?></div>
我试过 echo in <a>
, <p>
, withstripslashes(
我在这里不知所措,花了将近3天的时间,变种太多,无法提及,似乎无法破解。
任何帮助将不胜感激。