[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

/lib/Horde/Text/Filter/ -> text2html.php (sommaire)

(pas de description)

Poids: 130 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Text_Filter_text2html:: (1 méthode):
  preProcess()


Classe: Text_Filter_text2html  - X-Ref

Turn text into HTML with varying levels of parsing.  For no html
whatsoever, use htmlspecialchars() instead.

Parameters:
<pre>
parselevel -- The parselevel of the output. See the list of constants below.
charset    -- The charset to use for htmlspecialchars() calls.
class      -- The CSS class name for the links.
nofollow   -- Whether to set the 'rel="nofollow"' attribute on links.
callback   -- An optional callback function that the URL is passed through
before being set as the href attribute.  Must be a string with
the function name, the function must take the original as the
first and only parameter.
</pre>

<pre>
List of valid constants for the parse level:
--------------------------------------------
TEXT_HTML_PASSTHRU        =  No action. Pass-through. Included for
completeness.
TEXT_HTML_SYNTAX          =  Allow full html, also do line-breaks,
in-lining, syntax-parsing.
TEXT_HTML_MICRO           =  Micro html (only line-breaks, in-line linking).
TEXT_HTML_MICRO_LINKURL   =  Micro html (only line-breaks, in-line linking
of URLSs; no email addresses are linked).
TEXT_HTML_NOHTML          =  No html (all stripped, only line-breaks)
TEXT_HTML_NOHTML_NOBREAK  =  No html whatsoever, no line breaks added.
Included for completeness.
</pre>

$Horde: framework/Text_Filter/Filter/text2html.php,v 1.4.2.6 2006/02/17 20:05:49 chuck Exp $

Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>
Copyright 2004-2006 Jan Schneider <jan@horde.org>

See the enclosed file COPYING for license information (LGPL). If you did
not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

preProcess($text)   X-Ref
Executes any code necessary before applying the filter patterns.

param: string $text  The text before the filtering.
return: string  The modified text.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7