fix: encode

This commit is contained in:
Cory Dransfeldt 2024-10-17 16:58:52 -07:00
parent bbae08a925
commit d0a4a67e12
No known key found for this signature in database
11 changed files with 16 additions and 45 deletions

View file

@ -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,