zhconv icon indicating copy to clipboard operation
zhconv copied to clipboard

Get keyError when parsing text with html tag

Open yangyaofei opened this issue 2 years ago • 0 comments

convert_for_mw('[[𨭎|-{zh-cn:-{钅}-<span style="position: relative; left: -1ex">-{喜}-</span>; zh-tw:𨭎; zh-hk:𨭎;}-]]', "zh-cn") 

This text above will raise a keyError, and you can get this page from https://zh.wikipedia.org/wiki/%E9%92%A8

yangyaofei avatar Aug 17 '22 02:08 yangyaofei