'Replace the tokens with <for> tags the ForParser understands.'

@classmethod
def unstrip_fors(cls, html, dehydrations):

    def hydrate(match):
        return dehydrations.get(int((match.group(1) or match.group(2))), '')
    html = cls._PARSED_STRIPPED_FOR.sub(hydrate, html)
    return cls._PARSED_STRIPPED_FOR_CLOSER.sub(u'</for>', html)
