mirror of
https://github.com/github/awesome-copilot.git
synced 2026-05-27 17:11:44 +00:00
Fix entity decode ordering in md-to-docx (#1844)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -93,8 +93,9 @@ const tableBorders = {
|
||||
// --- Utility: decode HTML entities ---
|
||||
function decodeEntities(str) {
|
||||
return str
|
||||
.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">")
|
||||
.replace(/"/g, '"').replace(/'/g, "'");
|
||||
.replace(/</g, "<").replace(/>/g, ">")
|
||||
.replace(/"/g, '"').replace(/'/g, "'")
|
||||
.replace(/&/g, "&");
|
||||
}
|
||||
|
||||
// --- Inline tokens to TextRun[] ---
|
||||
|
||||
Reference in New Issue
Block a user