fix: encode
This commit is contained in:
parent
bbae08a925
commit
d0a4a67e12
11 changed files with 16 additions and 45 deletions
|
@ -8,6 +8,7 @@ export default {
|
|||
const replacement = '&'
|
||||
return string.replace(pattern, replacement)
|
||||
},
|
||||
replaceQuotes: (string) => string.replace(/"/g, '"'),
|
||||
formatNumber: (number) => number.toLocaleString('en-US'),
|
||||
htmlTruncate: (content, limit = 50) => truncateHtml(content, limit, {
|
||||
byWords: true,
|
||||
|
|
Reference in a new issue