You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nanosvg.h does not appear to currently support HTML entity codes, such as ; for ". This is troublesome because some special characters like "<> can only appear in some positions as entities. A tool I am using ("Figma") is encoding a > characters in a shape id as >, which is causing problems for my program when it tires to read that id using nanosvg (and it sees a raw > instead of the < it expects).
I wrote a small &# code decoder and would like to upstream it as a PR. However, I'm not sure exactly where to put it. I think the place to put the entity decode is
in nsvg__parseAttr, either right after the strncpy or possibly replacing it. However, are there other places it is appropriate to do HTML entity decoding in such a patch? For example are <text> tags currently supported?
The text was updated successfully, but these errors were encountered:
nanosvg.h does not appear to currently support HTML entity codes, such as ; for ". This is troublesome because some special characters like "<> can only appear in some positions as entities. A tool I am using ("Figma") is encoding a > characters in a shape id as >, which is causing problems for my program when it tires to read that id using nanosvg (and it sees a raw > instead of the < it expects).
I wrote a small &# code decoder and would like to upstream it as a PR. However, I'm not sure exactly where to put it. I think the place to put the entity decode is
in nsvg__parseAttr, either right after the strncpy or possibly replacing it. However, are there other places it is appropriate to do HTML entity decoding in such a patch? For example are <text> tags currently supported?
The text was updated successfully, but these errors were encountered: