1
我此行的主題顯示摘錄代碼:刪除簡碼(有代碼)
<p class="desc"><?php echo mb_strimwidth(strip_tags(get_the_content('')), 0, 220, '...'); ?></p>
我如何把這個代碼去掉從摘錄的簡碼?
$text = preg_replace('|\[(.+?)\](.+?\[/\\1\])?|s', '', $text);
我剛剛開始削減PHP,所以我只需要一點點的幫助。
謝謝!