Skip to content

Commit 39af955

Browse files
nrjdalalclaude
andcommitted
revert: remove HTML entity decoding, file had actual entities
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b87dbbe commit 39af955

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

bin/utils/interactive-picker.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,7 @@ export function interactivePicker(
535535
const lang = detectLang(node.name)
536536
if (lang !== "plain") {
537537
try {
538-
content = (await highlightText(text, lang))
539-
.replace(/&#(\d+);/g, (_, code) => String.fromCharCode(Number(code)))
540-
.replace(/&lt;/g, "<")
541-
.replace(/&gt;/g, ">")
542-
.replace(/&amp;/g, "&")
543-
.replace(/&quot;/g, '"')
544-
.replace(/&#x27;/g, "'")
538+
content = await highlightText(text, lang)
545539
} catch {
546540
content = text
547541
}

0 commit comments

Comments
 (0)