Skip to content

Commit 6186568

Browse files
authored
Merge pull request #1262 from nbogie/nb-fix-revert-of-overescaping
Partially revert "fix: properly escape inline <code> tags...in reference pages"
2 parents a9ff6f5 + ae94cd2 commit 6186568

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)