(value: string)
| 1 | const BUZZ_CODE_BLOCK_ATTRIBUTE = "data-buzz-code-block"; |
| 2 | |
| 3 | function escapeHtml(value: string) { |
| 4 | return value |
| 5 | .replace(/&/g, "&") |
| 6 | .replace(/</g, "<") |
| 7 | .replace(/>/g, ">") |
| 8 | .replace(/"/g, """); |
| 9 | } |
| 10 | |
| 11 | function createBuzzCodeBlockHtml(code: string) { |
| 12 | // Keep the code as one text node; the paste reader recovers it via textContent. |
no outgoing calls
no test coverage detected