As it turns out, you can work around this issie by using singly-quoted attributes instead of doubly-quoted, like so:
<a href='example.com'>This should work</a>
instead of
<a href="example.com">This will be stripped</a>
I have posted a Trac ticket about this issue, which has been assigned to “Future release”, which means something like “We’re not going to fix this right now, but maybe later.”
@dnusim
great, thank you for this information.
… this workaround doesn’t work in the visual editor, only in HTML view.
This would be great to have fixed, especially for things like Creative Commons image usage which often require a link with the credit.
that works when editing the image and saving it.
This issue seems to be resolved in trunk.
Update:
Single quotes work in HTML mode. Double quotes in HTML mode (escaped or not) break the caption if caption=”…” uses double quotes. Tags are stripped if you use the caption field in the Image GUI but the caption still works.
Milestone for the Trac ticket is currently set to 3.1.