urlize() does not handle html escaped string and trailing punctuation correctly Description
urlize() does not handle html escaped string and trailing punctuation correctly Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Example: urlize('Search for google.com/?q=1<! and see.') expected output 'Search for <a href="http://google.com/?q=1%3C" google.com/?q=1<</a ! and…
The task
Example: urlize('Search for google.com/?q=1<! and see.') # expected output 'Search for <a href="http://google.com/?q=1%3C">google.com/?q=1<</a>! and see.' # actual output 'Search for <a href="http://google.com/?q=1%3C">google.com/?q=1<</a>lt! and see.'
Part of Lego-X/Lego-RL-SWE-Bench-Verified.