(text: string)
| 9 | } |
| 10 | |
| 11 | export function decodeHtmlEntities(text: string): string { |
| 12 | return text.replace(/&(?:amp|lt|gt|quot|apos|nbsp|#39);/g, match => htmlEntities[match] || match) |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Strip all HTML tags from a string, looping until stable to prevent |
no outgoing calls
no test coverage detected