(text: string)
| 178 | } |
| 179 | |
| 180 | function escapeAttribute(text: string): string { |
| 181 | return (text || "").replace(/[&<>"]/g, (ch) => { |
| 182 | switch (ch) { |
| 183 | case "&": |
| 184 | return "&"; |
| 185 | case "<": |
| 186 | return "<"; |
| 187 | case ">": |
| 188 | return ">"; |
| 189 | case '"': |
| 190 | return """; |
| 191 | default: |
| 192 | return ch; |
| 193 | } |
| 194 | }); |
| 195 | } |
| 196 | |
| 197 | function resolveEntityUsername(entity: any): string | undefined { |
| 198 | if (!entity) return undefined; |
no outgoing calls
no test coverage detected