Rumah >pembangunan bahagian belakang >tutorial php >php去除html标签获得输入纯文本文档strip_tags
<?php $text = ' Test paragraph. Other text'; echo strip_tags($text); echo "\n"; // Allow echo strip_tags($text, ' '); ?> 上例将输出: Test paragraph. Other text Test paragraph. Other text |