summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/encoding.py
blob: 15edff7061f96b6f40fe42f6c4c09d3cdc07b643 (plain)
1
2
3
4
5
6
7
from html import escape

from wptserve.utils import isomorphic_decode

def main(request, response):
    label = request.GET.first(b'label')
    return u"""<!doctype html><meta charset="%s">""" % escape(isomorphic_decode(label))