Class THttpUtility

Description

THttpUtility class

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: THttpUtility.php 3005 2011-06-26 21:58:28Z ctrlaltca@gmail.com $
  • since: 3.0

Located in /Web/THttpUtility.php (line 21)


	
			
Method Summary
static string htmlDecode (string $s)
static string htmlEncode (string $s)
static string htmlStrip (string $s)
Methods
static method htmlDecode (line 46)

HTML-decodes a string.

It is the inverse of htmlEncode.

  • return: decoded string
  • access: public
static string htmlDecode (string $s)
  • string $s: string to be decoded
static method htmlEncode (line 35)

HTML-encodes a string.

This method translates the following characters to their corresponding HTML entities: <, >, " Note, unlike http://www.php.net/htmlspecialchars, & is not translated.

  • return: encoded string
  • access: public
static string htmlEncode (string $s)
  • string $s: string to be encoded
static method htmlStrip (line 57)

This method strips the following characters from a string:

HTML entities: <, >, "

  • return: encoded string
  • access: public
static string htmlStrip (string $s)
  • string $s: string to be encoded

Documentation generated on Mon, 25 Jun 2012 14:38:24 +0200 by phpDocumentor 1.4.3