Conn2Flow
Docs navigation

Reference / Libraries

geral.php library

A single function, geral_nl2br(), with no callers in the core.

Path in the Gestor bibliotecas/geral.php

It contains only geral_nl2br($string = ''): it returns nl2br($string) when the value is not empty (according to existe()) and the value itself otherwise. It does not escape HTML: for user text, use nl2br(htmlspecialchars($text)).

No core module uses it. It exists for compatibility; in new code, call nl2br() directly.

Registered as geral in bibliotecas-dados (gestor_incluir_biblioteca('geral')).

Functions

Generated from gestor/bibliotecas/geral.php · 1 functions

1 of 1

geral_nl2br

view source · line 22 ↗
geral_nl2br(string $string = ''): string

Converte quebras de linha em tags HTML <br>.

Parameters

$stringstring
A string onde as quebras de linha serão convertidas.

Returns

string
Retorna a string com as tags <br> incluídas, ou a string original se vazia.

Verified against the code at commit c267f123

Sources:

The Future is Hybrid: Human + AI.

Conn2Flow is the tool. If you need the Architect to design your company's strategy using this technology...

Hire Specialized Consulting