Solar_View_Helper_Nl2p::nl2p()

public string Solar_View_Helper_Nl2p::nl2p ( string $text , array $attr = array () )

Converts 2 or more newlines to paragraph tags.

Parameters

  • (string) $text: The text on which to change newlines into <p> tags.

  • (array) $attr: Attributes for each <p> tag.

Returns

  • (string) The escaped text, with newlines changed to paragraphs.

Description

Converts 2 or more newlines to paragraph tags.



Local