Skip to content

Commit 5d137d8

Browse files
committed
Revert "fix: properly escape inline <code> tags to preserve &lt; &gt; in reference pages"
This reverts commit f7e667e which caused bug #1240
1 parent a9ff6f5 commit 5d137d8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/components/Dropdown/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ export const Dropdown = ({
152152
</div>
153153
<button
154154
onClick={() => handleOptionClick(option)}
155-
ref={(el) => {
156-
optionRefs.current[index] = el as HTMLButtonElement;
157-
}}
155+
ref={(el) => (optionRefs.current[index] = el as HTMLButtonElement)}
158156
onBlur={handleBlur}
159157
>
160158
<span>{option.label}</span>

src/pages/_utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ export const getRefEntryTitleConcatWithParen = (
230230
*/
231231
export const escapeCodeTagsContent = (htmlString: string): string => {
232232
// Load the HTML string into Cheerio
233-
const $ = load(htmlString, {
234-
xmlMode: true
235-
});
233+
const $ = load(htmlString);
236234
// Loop through all <code> tags
237235
$("code").each(function () {
238236
// Don't escape code in multiline blocks, as these will already

0 commit comments

Comments
 (0)