(text)
| 1007 | } |
| 1008 | |
| 1009 | function slug(text) { |
| 1010 | return text |
| 1011 | .toLowerCase() |
| 1012 | .replace(/`/g, "") |
| 1013 | .replace(/[^a-z0-9]+/g, "-") |
| 1014 | .replace(/^-|-$/g, ""); |
| 1015 | } |
| 1016 | |
| 1017 | function escapeHtml(value) { |
| 1018 | return String(value).replace( |
no outgoing calls
no test coverage detected