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.
|