IDE escaping in fstring does not work

Bug description:
When trying to use html bold styling with tags and saving html to a file then the values for < and > marks are being changed to < and > . I was trying to use escaping to prevent this change but does not work

Expected vs Current Behavior:
tag value ‘Welcome’ is being overriten with tag.replace_with(‘Welcome’)

the returned result is <b>Wel</b>come after writing to html file

Steps to reproduce:
overwrite value of a string with styling save it to the file and verify the in the browser

Bug appears at this link:

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Replit Profile:

those marks less than and greater than (<, >) are changed to
& l t ; and & g t ; Im using spaces to prevent this to be changed automatically

Are you able to reproduce this bug locally?
From a glance this appears to be an issue with the python library you’re using.

If you could provide a screen recording, that would be awesome.

1 Like