(value = "")
| 29 | } |
| 30 | |
| 31 | function escapeAttribute(value = "") { |
| 32 | return String(value) |
| 33 | .replace(/&/g, "&") |
| 34 | .replace(/"/g, """) |
| 35 | .replace(/</g, "<") |
| 36 | .replace(/>/g, ">"); |
| 37 | } |
| 38 | |
| 39 | function splitLinkTarget(target = "") { |
| 40 | const hashIndex = target.indexOf("#"); |
no test coverage detected