Search
Preparing search index...
The search index is not available
@devowl-wp/utils
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"frontend-packages/react-cookie-banner/src/utils/reactNl2Br"
Module "frontend-packages/react-cookie-banner/src/utils/reactNl2Br"
Index
Variables
newline
Regex
Functions
react
Nl2
Br
Variables
Const
newline
Regex
newline
Regex
:
RegExp
= /(\r\n|\r|\n|<br[ ]?\/>)/g
Functions
Const
react
Nl2
Br
react
Nl2
Br
(
text
:
string
)
:
(
string
|
DetailedReactHTMLElement
<
HTMLAttributes
<
HTMLElement
>
,
HTMLElement
>
)
[]
see
https://codesandbox.io/s/94k7k80jxy
Parameters
text:
string
Returns
(
string
|
DetailedReactHTMLElement
<
HTMLAttributes
<
HTMLElement
>
,
HTMLElement
>
)
[]
Globals
"frontend-
packages/react-
cookie-
banner/src/utils/react
Nl2
Br"
newline
Regex
react
Nl2
Br
Generated using
TypeDoc
https://codesandbox.io/s/94k7k80jxy