ctreffe / alfred

Alfred - A library for rapid experiment development
MIT License
10 stars 1 forks source link

Improve handling of newline characters in input element description strings #248

Open ctreffe opened 6 months ago

ctreffe commented 6 months ago

Some users add newline characters or html code to their input elements' description strings, which causes issues with the codebook layout. Since description strings serve only the purpose of codebook generation, we should sanitize them to remove both newlines and html code to prevent these layout issues.

Sanitizing the description strings should be part of the initial data saving, not of the later codebook generation.

jobrachem commented 6 months ago

Maybe this issue also concerns the labels of choice elements.