Skip to content

brd2svg fails when element name has illegal characters #6

Description

@udif

It seems that there is no sanitation done on characters that appear in element names.
I tried converting a board (http://www.seeedstudio.com/wiki/images/0/0b/Lipo_rider_v1.1.zip) that unfortunately has an element (on/off switch) called "ON<-->OFF".

The '<' and '>' are then copied into the XML unescaped (should be converted to "&lt;" and "&gt;" respectively). I haven't checked for other characters that might need escaping but I would guess they are not handled correctly as well.

Note: modified comment to escape the original XML escape sequence for '<'. It seems markdown has munched my original sequence and converted it to a real '<', making my comment not really clear.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions