Which function in php validate if the string is html? My target to take input from user and check if input html and not just string.
Example for not html string:
Are you trying to prevent users from posting html tags instead of strings? Cause if this is what you want to do you just need striptags()
Wich will remove any html tags from the string.