(s)
| 438 | } |
| 439 | |
| 440 | function escapeHtml(s) { |
| 441 | return String(s).replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c])) |
| 442 | } |
| 443 | |
| 444 | const SLIDE_TEMPLATE = ` |
| 445 | <figure class="slides__slide{{activeClass}}{{failed}}" data-index="{{index}}"> |