Luke Davis

Morsel #14: Textlist to array

Filed under: JavaScript | tech | the Internet | utils

I have to change text lists into Python lists a lot and I always do it in Sublime Text with some regex. But I’d rather have a quicker way to do it by pasting and clicking a button.

So I made this! It takes a text list of strings and converts it into an array and then displays the array in a pre tag.

Update - 7th Feb 2026: so I realised today that this was susceptible to an XSS attack so I added a HTML sanitiser called JS Html Sanitizer.

Morsel #12: styling a WordPress post to look like a Bluesky post Morsel #15: en-150