By dynamic code i'm assuming you mean "client side" generated or javascript.
This will be tricky which is why google etc tend not to index them and why people use javascript to write email addresses when they don't want the spammers to harvest them.
good luck!