mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
fix: escape more html to avoid xml parsing errors
This commit is contained in:
@@ -335,7 +335,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin: 7px 0;
|
margin: 7px 0;
|
||||||
">${activity.name}</p>
|
">${escape(activity.name)}</p>
|
||||||
${
|
${
|
||||||
activity.details
|
activity.details
|
||||||
? `
|
? `
|
||||||
@@ -347,7 +347,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin: 7px 0;
|
margin: 7px 0;
|
||||||
">${activity.details}</p>`
|
">${escape(activity.details)}</p>`
|
||||||
: ``
|
: ``
|
||||||
}
|
}
|
||||||
${
|
${
|
||||||
@@ -361,7 +361,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin: 7px 0;
|
margin: 7px 0;
|
||||||
">${activity.state}${
|
">${escape(activity.state)}${
|
||||||
activity.party && activity.party.size
|
activity.party && activity.party.size
|
||||||
? ` (${activity.party.size[0]} of ${activity.party.size[1]})`
|
? ` (${activity.party.size[0]} of ${activity.party.size[1]})`
|
||||||
: ""
|
: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user