Browse Source

fix: correctly render "<" in subject text

github-label
Amio 6 years ago
parent
commit
61cfe58c68
  1. 2
      libs/serve-badge.js

2
libs/serve-badge.js

@ -12,7 +12,7 @@ module.exports = (req, res, options = {}) => {
const { style, label, list, icon } = req.query
const badge = badgen({
subject: typeof label !== 'undefined' ? label : subject,
subject: (typeof label !== 'undefined' ? label : subject).replace('<', '&lt;'),
status: String(list ? status.replace(/,/g, ' | ') : status),
color: color,
style: style || hostStyle,

Loading…
Cancel
Save