Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d58364e

Browse files
committed
added lt, gt, amp back to entity definitions
1 parent ee3de2a commit d58364e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/htmlentitydefs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec_14.html
33

44
entitydefs = {
5+
'lt': '<',
6+
'gt': '>',
7+
'amp': '&',
58
'nbsp': chr(160), # no-break space
69
'iexcl': chr(161), # inverted exclamation mark
710
'cent': chr(162), # cent sign

0 commit comments

Comments
 (0)