Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/react-cookie-banner/src/utils/reactNl2Br"

Index

Variables

Functions

Variables

Const newlineRegex

newlineRegex: RegExp = /(\r\n|\r|\n|<br[ ]?\/>)/g

Functions

Const reactNl2Br

  • reactNl2Br(text: string): (string | DetailedReactHTMLElement<HTMLAttributes<HTMLElement>, HTMLElement>)[]
  • Parameters

    • text: string

    Returns (string | DetailedReactHTMLElement<HTMLAttributes<HTMLElement>, HTMLElement>)[]

Generated using TypeDoc