mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 00:58:12 +00:00
6 lines
163 B
TypeScript
6 lines
163 B
TypeScript
export function getHTMLEncodedText(htmlString: string) {
|
|
const div = document.createElement('div')
|
|
div.textContent = htmlString || ''
|
|
return div.innerHTML
|
|
}
|