Markup::escape PHP Method

escape() public static method

public static escape ( $in )
    public static function escape($in)
    {
        return htmlspecialchars($in, ENT_NOQUOTES, 'UTF-8');
    }

Usage Example

Beispiel #1
0
<?php

$title = $page->getName();
include 'header.php';
?>
<h1 id="pagetitle"><?php 
echo Markup::escape($page->getName());
?>
</h1>
<table class="history">
<?php 
foreach ($history as $entry) {
    printf('<tr><td><a href="%s?commit=%s">%s</a></td><td>%s</td><td>%s</td></tr>', $page->getURL(), $entry->commit, Markup::escape(strftime('%Y-%m-%d %H:%M', $entry->time)), Markup::escape($entry->author), Markup::escape($entry->summary));
}
?>
</table>
<?php 
include 'footer.php';
All Usage Examples Of Markup::escape