UNPKG

custom-bootstrap-vue

Version:

Custom version of bootstrap-vue created for providing specific theme to a particular project

9 lines (6 loc) 399 B
const RX_HTML_TAGS = /(<([^>]+)>)/gi // Removes anything that looks like an HTML tag from the supplied string export const stripTags = (text = '') => String(text).replace(RX_HTML_TAGS, '') // Generate a `domProps` object for either `innerHTML`, `textContent` or an empty object export const htmlOrText = (innerHTML, textContent) => innerHTML ? { innerHTML } : textContent ? { textContent } : {}