Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 98 | All time: 9,830 This week: 455 |
Version | License | PHP version | Categories | |||
is_htmlspecialchars 1.0 | GNU General Publi... | 5 | HTML, PHP 5, Searching |
This package serves to check whether the data shared with it contains HTML special characters. The data must be specified in string
type. Returns true
if the HTML contains special characters, otherwise false
.
data:
$code = 'merhaba <?=$this->timestamp;?>';
Out-of-class use:
code:
require_once('Mind.php');
if($m::aliyilmaz('is_htmlspecialchars')->is_htmlspecialchars($code)){
echo 'HTML contains special characters.';
} else {
echo 'HTML does not contain special characters';
}
When using it in the class:
code:
if(self::aliyilmaz('is_htmlspecialchars')->is_htmlspecialchars($code)){
echo 'HTML contains special characters.';
} else {
echo 'HTML does not contain special characters';
}
output:
HTML contains special characters.
This package has no dependencies.
Instructions and files in this directory are shared under the GPL3 license.
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
is_htmlspecialchars-2021-12-17.zip 13KB | |
is_htmlspecialchars-2021-12-17.tar.gz 12KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.