Escapes HTML special characters in a string.
(str: string)
| 14 | |
| 15 | /** Escapes HTML special characters in a string. */ |
| 16 | function escapeHtml(str: string): string { |
| 17 | return str |
| 18 | .replace(/&/g, '&') |
| 19 | .replace(/</g, '<') |
| 20 | .replace(/>/g, '>') |
| 21 | .replace(/"/g, '"') |
| 22 | .replace(/'/g, '''); |
| 23 | } |
| 24 | |
| 25 | /** List of types to be included in the release notes. */ |
| 26 | const typesToIncludeInReleaseNotes = Object.values(COMMIT_TYPES) |