Badgen.net: Using `%` as text breaks the badges

Created on 26 Nov 2020  路  3Comments  路  Source: badgen/badgen.net

Hey, I just noticed that my custom badges for code coverage shown in percentage are broken.

https://badgen.net/badge/coverage/7.79%25/red

When remove the % it works. The %25 is for the % symbol.

Any ideas how to achieve that? I guess it's something with the encodings.

Most helpful comment

Hm. Now it works. That was weird :laughing:

All 3 comments

Seems to be displaying correctly for me

Screenshot:
image

Live:

Same as @wopian

@tunnckoCore Is it got unescaped before treating as image src?

Hm. Now it works. That was weird :laughing:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bjankord picture bjankord  路  3Comments

sindresorhus picture sindresorhus  路  6Comments

styfle picture styfle  路  5Comments

tunnckoCore picture tunnckoCore  路  4Comments

tunnckoCore picture tunnckoCore  路  3Comments