1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-01-23 07:01:41 +00:00
stackdump/python/packages/html5lib/serializer/xhtmlserializer.py

10 lines
269 B
Python
Raw Permalink Normal View History

from htmlserializer import HTMLSerializer
class XHTMLSerializer(HTMLSerializer):
quote_attr_values = True
minimize_boolean_attributes = False
use_trailing_solidus = True
escape_lt_in_attrs = True
omit_optional_tags = False
escape_rcdata = True