Last active
April 14, 2022 06:48
-
-
Save levigroker/36525010ba0bce15450c89fe6a5f36b1 to your computer and use it in GitHub Desktop.
A BBEdit Text Filter script to take textual input and produce URL encoded text of the same.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# URL Encode | |
# https://gist.github.com/levigroker/36525010ba0bce15450c89fe6a5f36b1 | |
# | |
# A BBEdit Text Filter script to take textual input and produce URL encoded text of the same. | |
# See https://www.bbeditextras.org/text-filters/ | |
# Levi Brown | |
# @levigroker | |
# levigroker@gmail.com | |
# January 12, 2018 | |
## | |
IN=$(tee) | |
CMD="echo urlencode('${IN}');" | |
OUT=$(php -r "$CMD") | |
echo -n "${OUT}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment