Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix .NET docs comments which contained `<` or `>` (#10772)

Max Schmitt6e607bc10930
diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.js
index cca6c1b4fe..898e924147 100644
--- a/utils/doclint/xmlDocumentation.js
+++ b/utils/doclint/xmlDocumentation.js
@@ -122,7 +122,7 @@ function _wrapAndEscape(node, maxColumns = 0) {
return `<a href="${linkUrl}">${linkName}</a>`;
});
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
- text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '&lt;').replace('>', '&gt;')}</c>`);
+ text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace(/</g, '&lt;').replace(/>/g, '&gt;')}</c>`);
text = text.replace(/ITimeoutError/, 'TimeoutException');
text = text.replace(/Promise/, 'Task');