MCPcopy
hub / github.com/htmlhint/HTMLHint / formatMessage

Function formatMessage

src/cli/formatters/html.ts:9–15  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

7 * @returns Escaped message
8 */
9const formatMessage = (message: string): string =>
10 message
11 .replace(/&/g, '&')
12 .replace(/</g, '&lt;')
13 .replace(/>/g, '&gt;')
14 .replace(/"/g, '&quot;')
15 .replace(/'/g, '&#039;')
16
17const htmlFormatter: FormatterCallback = function (formatter) {
18 formatter.on('end', (event) => {

Callers 1

htmlFormatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected