Python encode string to html -


how 1 take string , encode special characters html?

for example, if have "test@test" how encode becomes "test%40test"

is there easy way of doing instead of using replace manually list every 1 want replace?

try urlencodefunction. documentation here.

https://docs.python.org/2/library/urllib.html#urllib.urlencode


Comments