I'm trying to include some svg in a form, in conjuction with radio elements.
I've been using #prefix, #suffix, and
The strange thing that's been happening is that when it creates the form drupal has been changing the prefix and suffix code my module inserted.
Specifically, it has been closing off all the svg code in the prefix (adding
</svg> at the end of the prefix), and it has been eliminating whole sections of the #suffix. This breaks my code. (by the way, the code I'm trying to achieve already works perfectly if I simply insert it by hand into a node and display it that way--so the problem is definitely the changes)
I've been assuming that this must be some incompatibility of drupal with svg, that it sees this as bad html code and tries to fix it--but I cannot figure out where this is happening in the core modules, or what a work-around might be.