PHP Classes

File: tests/is_htmlspecialchars.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/is_htmlspecialchars.php   Download  
File: tests/is_htmlspecialchars.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 1 year ago
Size: 250 bytes
 

Contents

Class file image Download
<?php

require_once '../src/Mind.php';

$Mind = new Mind();

$code = 'merhaba &lt;?=$this-&gt;timestamp;?&gt;';

if(
$Mind->is_htmlspecialchars($code)){
    echo
'HTML has special characters.';
} else {
    echo
'HTML special characters not found.';
}