feat: add br tag support to the i18n component for triggering html rendering

pull/3206/head
Ryan Miller 1 year ago
parent 0611aba29f
commit cb31dbcf6f

@ -9,7 +9,7 @@ import type {
import { SessionHtmlRenderer } from './SessionHTMLRenderer'; import { SessionHtmlRenderer } from './SessionHTMLRenderer';
/** An array of supported html tags to render if found in a string */ /** An array of supported html tags to render if found in a string */
const supportedFormattingTags = ['b', 'i', 'u', 's']; const supportedFormattingTags = ['b', 'i', 'u', 's', 'br'];
/** A regex to match supported formatting tags */ /** A regex to match supported formatting tags */
const formattingTagRegex = new RegExp( const formattingTagRegex = new RegExp(

Loading…
Cancel
Save