다음과 같은 콘텐츠가 있습니다.
모든 것이 게임으로 결정되는 세상에서 Disboard .
Disboard 에서 하이퍼 링크를 제거하고 싶지만strip_tags()
작동하지 않습니다.
내 코드는 다음과 같습니다.
<?php custom_echo (html_entity_decode(strip_tags($value['konten'],'')), 660); ?>
$str = 'In the world where everything is decided by games,<a
href="www.google.com">Hyperlink</a>';
$str = htmlspecialchars ($str);
echo html_entity_decode(strip_tags( $str ));
$ str의 문자열에 변환되는 html 문자가 있으면 (여기처럼) strip_tags는이를 제거 할 수 없습니다.
시험
echo strip_tags( html_entity_decode( $str ));
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다