Feb 26, 2018 PHPで文字列からタグをのぞいて任意の文字数ぶん取得する方法 Categories: php 意外と簡単でした。 タグを外す strip_tags() 必要な文字数分だけ取得 mb_strimwidth() 必要な場合これも使うヨロシ。 html_entity_decode()