MCPcopy Create free account
hub / github.com/microsoft/Webwright / stripSessionMarkup

Function stripSessionMarkup

assets/compare_trajectory/app.js:350–358  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

348}
349
350function stripSessionMarkup(text) {
351 return String(text || '')
352 .replace(/<details>/gi, '')
353 .replace(/<\/details>/gi, '')
354 .replace(/<summary>.*?<\/summary>/gis, '')
355 .replace(/<sub>.*?<\/sub>/gis, '')
356 .replace(/^---$/gm, '')
357 .trim();
358}
359
360function extractCodeFences(text) {
361 const fences = [];

Callers 2

parseSessionToolSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected