All Downloads are FREE. Search and download functionalities are using the official Maven repository.

utils.html.js Maven / Gradle / Ivy

import _ from "lodash"
import parse from 'html-react-parser'

export function isHtmlString(string) {
  return _.isString(string) && /^\s*<[a-z\s]+>/i.test(string)
}

export function renderHtml(string) {
  return parse(string) 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy