def replace(data, replacements):
    return reduce(lambda a, kv: a.replace(*kv), replacements, data)
Performs several string substitutions on the initial ``data`` string using
dataset/ETHPy150Open ellmetha/django-precise-bbcode/precise_bbcode/core/utils.py/replace