PHP Classes

How Can PHP Detect HTML Tags in a String - IS PHP HTMLSpecialChars package blog

Recommend this page to a friend!
  All package blogs All package blogs   IS PHP HTMLSpecialChars IS PHP HTMLSpecialChars   Blog IS PHP HTMLSpecialChars package blog   RSS 1.0 feed RSS 2.0 feed   Blog How Can PHP Detect HT...  
  Post a comment Post a comment   See comments See comments (1)   Trackbacks (0)  

Author:

Updated on: 2022-01-14

Posted on: 2022-01-14

Package: IS PHP HTMLSpecialChars

HTML uses special characters like <, > and & to define tags inserted in the document text to mark the documents in a specific way.

This class returns whether a given text string contains HTML special characters. So you can it to determine if a given text can be HTML.




Loaded Article

About the IS PHP HTMLSpecialChars Package

The package IS PHP HTMLSpecialChars is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Check if a HTML string contains special characters

Here follows in more detail what it does:

This is a simple class that can check if an HTML string contains special characters.

It takes a string with HTML tags and searches it to find characters like < , > and & .

The class returns true if any HTML special characters are found.

Conclusion

The IS PHP HTMLSpecialChars can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.

This package was considered notable for implementing its benefits in a way that is worth noticing.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.

One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.




You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

1. If you only want to detect HTML - Igor Gaffling (2022-01-14 09:27)
you can also use this simple code... - 0 replies
Read the whole comment and replies




  Post a comment Post a comment   See comments See comments (1)   Trackbacks (0)  
  All package blogs All package blogs   IS PHP HTMLSpecialChars IS PHP HTMLSpecialChars   Blog IS PHP HTMLSpecialChars package blog   RSS 1.0 feed RSS 2.0 feed   Blog How Can PHP Detect HT...  
For more information send a message to info at phpclasses dot org.