我想获取文本小部件并从当前显示为的文本输出中删除前面/后面的标记
<div class="textwidget">Test</div>
分配给每个小部件区域的before\\u小部件/after\\u小部件在我的控制下,但小部件内容本身超出了我的控制范围。
// Area 4, located in the footer. Empty by default.
register_sidebar( array(
\'name\' => __( \'First Footer Widget Area\', \'lakeshoreautoclinic\' ),
\'id\' => \'first-footer-widget-area\',
\'description\' => __( \'The first footer widget area\', \'lakeshoreautoclinic\' ),
\'before_widget\' => \' <p>\',
\'after_widget\' => \'</p>\',
\'before_title\' => \'<strong>\',
\'after_title\' => \'</strong>\',
) );
为周围/小部件输出
<p><strong>Test</strong><div class="textwidget">Test</div></p>