martinblech / xmltodict

Python module that makes working with XML feel like you are working with JSON
MIT License
5.49k stars 462 forks source link

how to keep > #288

Closed wangke1970 closed 2 years ago

wangke1970 commented 2 years ago

how to keep >

xml = '''L_w-9BDTXP& gt;5!,BGXs6L$''' d = xmltodict.parse(xml) print(d) OrderedDict([('password', 'L_w-9BDTXP>5!,BGXs6L$')])

& gt; change to >

                                                     thanks
javadev commented 2 years ago

You may use cdata blocks.