public static function text($string)
    {
        /**
         * HTML Entity Encoding
         *
         * & => &amp;
         * < => &lt;
         * > => &gt;
         * " => &quot;
         * ' => &#x27; aka &#039;
         */
        $escaped = htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');

        /**
         * QWASP recommendation:
         * / => &#x2F;
         *
         * Forward slash is included as it helps end an HTML entity
         */
        $escaped = str_replace("/", "&#x2F;", $escaped);

        return $escaped;
    }