Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create tasks containing quote characters #287

Open
monban opened this issue Jan 13, 2018 · 2 comments
Open

Unable to create tasks containing quote characters #287

monban opened this issue Jan 13, 2018 · 2 comments

Comments

@monban
Copy link
Collaborator

monban commented Jan 13, 2018

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.

@bepolymathe
Copy link

OK thanks for exploration and explication.

@NGenetzky
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants