From 45c08f1200845ce755ed8eaf632b23b4c0313e89 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 1 Oct 2026 11:11:30 -0700 Subject: [PATCH] fix(seo): escape backslashes in llms-full.txt comparison table cells --- apps/sim/app/llms-full.txt/route.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/llms-full.txt/route.ts b/apps/sim/app/llms-full.txt/route.ts index 5d23203bcfe..eedce680267 100644 --- a/apps/sim/app/llms-full.txt/route.ts +++ b/apps/sim/app/llms-full.txt/route.ts @@ -69,7 +69,10 @@ function proseToMarkdown(prose: Prose): string { /** A fact as a table cell: its compact form, as the comparison table renders it. */ function factCell(fact: Fact | undefined): string { const value = fact ? (fact.shortValue ?? fact.value) : 'Unknown' - return value.replace(/\|/g, '\\|').replace(/\s*\n\s*/g, ' ') + return value + .replace(/\\/g, '\\\\') + .replace(/\|/g, '\\|') + .replace(/\s*\n\s*/g, ' ') } function isoDate(date: Date): string {