We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56cc64e commit 9e4d079Copy full SHA for 9e4d079
public/js/extra.js
@@ -168,11 +168,11 @@ export function renderTags (view) {
168
}
169
170
function slugifyWithUTF8 (text) {
171
- // remove html tags and trim spaces
+ // remove HTML tags and trim spaces
172
let newText = stripTags(text.toString().trim())
173
- // replace all spaces in between to dashes
+ // replace space between words with dashes
174
newText = newText.replace(/\s+/g, '-')
175
- // slugify string to make it valid for attribute
+ // slugify string to make it valid as an attribute
176
newText = newText.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, '')
177
return newText
178
0 commit comments