PHPColibri/framework

View on GitHub
Util/Html.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Colibri\Util;

use Colibri\Pattern\Helper;

/**
 * Some Html manipulations helpers.
 */
class Html extends Helper
{
    /**
     * Escapes all html chars.
     *
     * @param $value
     *
     * @return string
     */
    public static function e($value)
    {
        return htmlspecialchars($value, ENT_QUOTES | ENT_HTML5);
    }
}