-
Notifications
You must be signed in to change notification settings - Fork 74
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
Allow linebreaks in poll description and comments #500
Comments
It is strange, cause this line already looks like it wouls show a BR in place of a new line: https://github.com/nextcloud/polls/blob/master/templates/vote.tmpl.php#L96
The function getDescription is not in the Polls-sourcecode, so it may be a bug in another project? I could think of a solution like this: add this line after the first str_replace:
|
HTML tags in the description are nearly a running gag. We had many problems including possible vulnerability. I think, this is something worth to be done in the migration of the vote page. After that things get a little bit easier. |
Allowing Markdown would be really nice |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It is not possible to add a newline in the output of the poll-description and in comments
If you add
<br>
it will shown as code there and if you add a line break, it are cut out completely of the output, not even replaced with a space, so the last character and the first of the new line glue together without space.I can think of two solutions:
<br>
in comments and the descriptionI prefer the first or third solutions, the first is easy to achieve with PHP
strip_tags
, Example:The text was updated successfully, but these errors were encountered: