(
html: string,
implicitTags: string[] = [],
implicitAttrs: {[k: string]: string[]} = {},
preserveSignificantWhitespace = true,
)
| 384 | } |
| 385 | |
| 386 | function _humanizePlaceholders( |
| 387 | html: string, |
| 388 | implicitTags: string[] = [], |
| 389 | implicitAttrs: {[k: string]: string[]} = {}, |
| 390 | preserveSignificantWhitespace = true, |
| 391 | ): string[] { |
| 392 | return _extractMessages(html, implicitTags, implicitAttrs, preserveSignificantWhitespace).map( |
| 393 | (msg) => |
| 394 | Object.keys(msg.placeholders) |
| 395 | .map((name) => `${name}=${msg.placeholders[name].text}`) |
| 396 | .join(', '), |
| 397 | ); |
| 398 | } |
| 399 | |
| 400 | function _humanizePlaceholdersToMessage( |
| 401 | html: string, |
no test coverage detected