inthe.am icon indicating copy to clipboard operation
inthe.am copied to clipboard

Unable to create tasks containing quote characters

Open monban opened this issue 7 years ago • 2 comments

Because incoming tasks (whether submitted through the API, or the web interface which seems to just use the API on the backend) are JSON encoded, they cannot contain the " character directly. You can encode it as ", and this seems to work correctly in the web interface, but after doing a task sync it appears in your local task list as " not ".

It is possible to create taskwarrior tasks with quotes in them by escaping the quotes on the command line: task add hello \"world\" works, for example.

We should explore the possibility of parsing incoming tasks for HTML escape characters, like ", and converting them (re-escaping if required) when creating the actual task in the database. I might have some time tomorrow to do an initial review of how difficult this might be.

This problem was initially surfaced by @bepolymathe using the web extension here: monban/intheam-webextension#13.

monban avatar Jan 13 '18 22:01 monban

OK thanks for exploration and explication.

bepolymathe avatar Jan 14 '18 09:01 bepolymathe

This might be something simple that I could look into as a simple first task.

NGenetzky avatar Dec 14 '20 05:12 NGenetzky