Skip to content

Comment on Show HN: Supershields.io – smart, Lua-powered SVG status badges

Comments

Nice, I wanted something like that to create badges for git deps in Clojure. Here is my attempt to do it using Supershields:

https://supershields.io/d1a18b018347defeec7b

Two questions:

1. text doesn't fit, how to fix that?

2. quote characters — «"» — get escaped as «"», how to avoid that?

rlonnOP

Removing the html.unescape() seems to work

No it doesn't. The badge in the Test Script pane always shows correct quotes, but the publicly available one escapes the quotes. I added html.unescape thinking it will fix the issue, but it didn't. Now I removed unescape again, and it's still broken.

rlonnOP

Try now!

The backend was a bit over-zealous about the HTML escaping...

Fantastic, thanks a lot!

rlonnOP

Oh, sorry, I'll investigate it. BRB.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.