Filter
[ class tree: Filter ] [ index: Filter ] [ all elements ]

Class: Formagic_Filter_Nl2br

Source Location: /Filter/Nl2br.php

Class Overview


Converts all newline characters to HTML breaks


Author(s):

  • Florian Sonnenburg

Version:

  • $Id: Nl2br.php 126 2011-05-18 18:41:58Z meweasle $

Copyright:

  • Copyright (c) 2009 Florian Sonnenburg

Implements interfaces:

Methods



Class Details

[line 36]
Converts all newline characters to HTML breaks



Tags:

author:  Florian Sonnenburg
version:  $Id: Nl2br.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2009 Florian Sonnenburg


[ Top ]


Class Methods


method filter [line 46]

string filter( string $value)

Transforms all newline characters to HTML breaks.

Utilizes PHP's nl2br().




Tags:

return:  The filtered string
access:  public



Implementation of:
Formagic_Filter_Interface::filter()
Filter implementation.

Parameters:

string   $value   The string to be filtered

[ Top ]


Documentation generated on Sun, 22 May 2011 22:40:18 +0200 by phpDocumentor 1.4.3