(s: string)
| 54 | } |
| 55 | |
| 56 | function escapeHtml(s: string): string { |
| 57 | return s.replace(/[&<>]/g, c => (c === '&' ? '&' : c === '<' ? '<' : '>')); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Strip ES module syntax so source can run inside an in-browser `<script type="text/babel">` |
no outgoing calls
no test coverage detected