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

Unescaped strings in app descriptions on oTree Hub #103

Open
peterjc opened this issue Aug 17, 2021 · 1 comment
Open

Unescaped strings in app descriptions on oTree Hub #103

peterjc opened this issue Aug 17, 2021 · 1 comment

Comments

@peterjc
Copy link

peterjc commented Aug 17, 2021

(Unsure if you want oTree Hub bug reports here, or just emailed to the oTree Google Group?)

I have been browsing the public projects on oTree Hub:

https://www.otreehub.com/projects/

There are lots of issues with how the app descriptions are displayed, apparently double escaped?

This includes display of "\n" (presumably a new line in the Python string which could be removed or replaced with a space), "&" and even HTML snippets like "<br/>" (over escaped HTML break) and an HTML link.

Peter

@peterjc
Copy link
Author

peterjc commented Aug 17, 2021

GitHub has been helpful, using back ticks this time: I am seeing \n and &amp; and &lt;br/&gt; etc on oTree Hub

peterjc added a commit to peterjc/MDT-INTR-EXP-MET that referenced this issue Aug 17, 2021
This text is used on oTree hub, e.g. here:
https://www.otreehub.com/projects/mdt-intr-exp-met/

More consise questionnaire_and_payment app description to
avoid truncation, and avoid ampersand due to display bug:

oTree-org/oTree#103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant