PHP Classes

If you only want to detect HTML

Recommend this page to a friend!

      IS PHP HTMLSpecialChars  >  IS PHP HTMLSpecialChars package blog  >  How Can PHP Detect HT...  >  All threads  >  If you only want to detect HTML  >  (Un) Subscribe thread alerts  
Subject:If you only want to detect HTML
Summary:you can also use this simple code
Messages:1
Author:Igor Gaffling
Date:2022-01-14 09:27:12
 

  1. If you only want to detect HTML   Reply   Report abuse  
Picture of Igor Gaffling Igor Gaffling - 2022-01-14 09:27:12
if ($string != strip_tags($string)) {
die(’String contains HTML’);
}