Skip to content

Commit c8224e7

Browse files
authored
Merge pull request #4 from aws-samples/fix-card-bold-rendering
Allow <strong> tags in skill card descriptions
2 parents 78a9554 + 2faec49 commit c8224e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/javascripts/skills-filter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
// Description (may contain safe HTML links from the hook)
4646
var desc = document.createElement("p");
47-
desc.innerHTML = DOMPurify.sanitize(skill.description, { ALLOWED_TAGS: ["a"], ALLOWED_ATTR: ["href", "target", "rel"] });
47+
desc.innerHTML = DOMPurify.sanitize(skill.description, { ALLOWED_TAGS: ["a", "strong"], ALLOWED_ATTR: ["href", "target", "rel"] });
4848
card.appendChild(desc);
4949

5050
// Author

0 commit comments

Comments
 (0)