[Fixed]-Python string replace isn't working for me

1👍

I figured it out I had to convert entries to a string like so

oldstring = str(entries)
removed = '<script type="text/javascript">jwplayer("video-setup").setup('
newstring = oldstring.replace(removed, "")

return newstring

it works. I guess what’s returned isn’t a string.

👤losee

Leave a comment