• import { textToHtml } from '@src/hylo-components/utils/usefull/usefull';

    Converts a text into html markup. Adds paragraphs for text blocks which are separated by two line breaks and adds links for text passages starting with "http" or "https".

    Escapes special Html characters.

    Parameters

    • text: string

      the text to be converted

    • Optional br: boolean

      add
      for single line breaks

    Returns any

Generated using TypeDoc