%PDF- %PDF-
Direktori : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/utils/ |
Current File : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/utils/html.js |
import { RX_HTML_TAGS } from '../constants/regex' // 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 } : {}