Editorial Workflows

URL encode

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Replaces the current selection with a URL-encoded version of the selection.

Shared by: Jarrod Whaley (jarrodwhaley.com, @jbwhaley)

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Set Clipboard ?
Run Python Script ?
Source Code
import clipboard
import urllib

s = clipboard.get()

s = s.encode('utf-8')
s = urllib.quote(s, safe='')

clipboard.set(s)
Set Variable ?
Variable Name
s
Value
Clipboard
Replace Selected Text ?
Replacement Text
s