HTML-like and non-HTML-like strings with the same content cannot coexist
As discussed on !2016 (merged), attempting to use an HTML-like string and a non-HTML-like string with the same content results in internal confusion in the reference counted strings code. Only a single string is created and it has the type of whichever instance was created first:
$ cat foo.dot
graph {
a[label="foo"];
b[label=<foo>];
}
$ dot -Tdot foo.dot
graph {
graph [bb="0,0,126,36"];
node [label="\N"];
a [height=0.5,
label=foo,
pos="27,18",
width=0.75];
b [height=0.5,
label=foo,
pos="99,18",
width=0.75];
}
$ cat bar.dot
graph {
b[label=<foo>];
a[label="foo"];
}
$ dot -Tdot bar.dot
graph {
graph [bb="0,0,126,36"];
node [label="\N"];
b [height=0.5,
label=<foo>,
pos="27,18",
width=0.75];
a [height=0.5,
label=<foo>,
pos="99,18",
width=0.75];
}