Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
## 1.5.1
### Bug fixes
- Remove HTML tag when handling slug

## 1.5.0

### Bug fixes
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -117,6 +117,7 @@ export function slugify (string) {
if (!maintainCase) string = string.toLowerCase()

let slug = string.trim()
.replace(/<[^>\d]+>/g, '')
.replace(re, '')
.replace(/\s/g, replacement)
let occurrences = slugify.occurrences[slug]
Expand Down