PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class THttpUtility

THttpUtility class

Package: System\Web
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/THttpUtility.php
Methods summary
public static string
# htmlEncode( string $s )

HTML-encodes a string. This method translates the following characters to their corresponding HTML entities: <, >, " Note, unlike htmlspecialchars, & is not translated.

HTML-encodes a string. This method translates the following characters to their corresponding HTML entities: <, >, " Note, unlike htmlspecialchars, & is not translated.

Parameters

$s
string
string to be encoded

Returns

string
encoded string
public static string
# htmlDecode( string $s )

HTML-decodes a string. It is the inverse of THttpUtility::htmlEncode().

HTML-decodes a string. It is the inverse of THttpUtility::htmlEncode().

Parameters

$s
string
string to be decoded

Returns

string
decoded string
public static string
# htmlStrip( string $s )

This method strips the following characters from a string: HTML entities: <, >, "

This method strips the following characters from a string: HTML entities: <, >, "

Parameters

$s
string
string to be encoded

Returns

string
encoded string
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO