def METHOD_NAME(context, stream_child):
    rendered = stream_child.render(context=context)
    # This logic is needed because historically we have supported the
    # inclusion of raw HTML tags in any Wagtail text or rich text block.
    # Ideally we could remove this logic, but before we do so we need to
    # eliminate all such tags from our field content.
    #
    # By default all blocks are unescaped, but individual blocks can disable
    # this behavior by setting unescape=False in their Meta class. Once all
    # blocks have been audited for raw HTML tags, and all have unescape set
    # to False, this logic can be removed, and we can simplify our templates
    # to use {% include_block %} instead of {{ render_stream_child }}.
    if getattr(stream_child.block.meta, "unescape", True):
        rendered = html.unescape(rendered)
    return Markup(rendered)