[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/helper/ -> EscapingHelper.php (sommaire)

The functions are primarily used by the output escaping component. Each function specifies a way for applying a transformation to a string passed to it. The purpose is for the string to be "escaped" so it is suitable for the format it is being displayed in.

Author: Mike Squire <mike@somosis.co.uk>
Version: SVN: $Id: EscapingHelper.php 2669 2006-11-13 17:06:36Z fabien $
Poids: 94 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 4 fonctions

  esc_entities()
  esc_raw()
  esc_js()
  esc_js_no_entities()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

esc_entities($value)   X-Ref
Runs the PHP function htmlentities on the value passed.

param: string $value the value to escape
return: string the escaped value

esc_raw($value)   X-Ref
An identity function that merely returns that which it is given, the purpose
being to be able to specify that the value is not to be escaped in any way.

param: string $value the value to escape
return: string the escaped value

esc_js($value)   X-Ref
A function that c-escapes a string after applying {@link esc_entities()}. The
assumption is that the value will be used to generate dynamic HTML in some
way and the safest way to prevent mishap is to assume the value should have
HTML entities set properly.

The {@link esc_js_no_entities()} method should be used to escape a string
that is ultimately not going to end up as text in an HTML document.

param: string $value the value to escape
return: string the escaped value

esc_js_no_entities($value)   X-Ref
A function the c-escapes a string, making it suitable to be placed in a
JavaScript string.

param: string $value the value to escape
return: string the escaped value



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7