mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-28 11:44:44 +08:00
Move style related actions to templates
This commit is contained in:
10
js/template/sanitizeText.js
Normal file
10
js/template/sanitizeText.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const div = document.createElement("div")
|
||||
|
||||
function sanitizeText(value) {
|
||||
div.textContent = value
|
||||
value = div.textContent
|
||||
div.innerHTML = ""
|
||||
return value
|
||||
}
|
||||
|
||||
export default sanitizeText
|
||||
Reference in New Issue
Block a user