inthe.am
inthe.am copied to clipboard
Unable to create tasks containing quote characters
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.
OK thanks for exploration and explication.
This might be something simple that I could look into as a simple first task.