For coders:

The solution would be to not store the expended version, but instead store the original version and expend it when it's time to display the signature, before it's translated to HTML. (Even better, save some cycles and don't expand it at all, translate to HTML directly.)