Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

fix: lower than and greater than characters are escaped #37

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/handlers/issue/generate-permits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ function generateDetailsTable(totals: TotalsById) {
const commentScore = commentScores[index];

const commentUrl = commentSource.comment.html_url;
const truncatedBody = commentSource ? commentSource.comment.body.substring(0, 64).concat("...") : "";
const truncatedBody = commentSource
? commentSource.comment.body.replaceAll("<", "&lt;").replaceAll(">", "&gt;").substring(0, 64).concat("...")
gentlementlegen marked this conversation as resolved.
Show resolved Hide resolved
: "";
const formatScoreDetails = commentScore.formatScoreCommentDetails;

let formatDetailsStr = "";
Expand Down