mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-12 22:47:30 +08:00
Various improvements
This commit is contained in:
@@ -236,8 +236,9 @@ export default class Utility {
|
||||
/** @param {String} value */
|
||||
static clearHTMLWhitespace(value) {
|
||||
return value
|
||||
.replaceAll(" ", "\u00A0")
|
||||
.replaceAll("<br>", "\n")
|
||||
.replaceAll(" ", "\u00A0") // whitespace
|
||||
.replaceAll("<br>", "\n") // newlines
|
||||
.replaceAll(/(\<!--.*?\-->)/g, "") // html comments
|
||||
}
|
||||
|
||||
/** @param {String} value */
|
||||
|
||||
Reference in New Issue
Block a user