Fixed bug that caused unescaped characters in the body of list items to modify exported PDF and HTML files

This commit is contained in:
Om Godse 2021-05-24 22:18:34 +05:30
parent 77d95f4b3a
commit e606c74dc7
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
*Development has paused and will resume in June. Please use the issues tab only for bug reports*
*Please use the issues tab only for bug reports*
### Background
Although there are many notes apps out there, they're all hideous, glitchy, low quality or all 3 at the same time.
@ -33,7 +33,6 @@ Well, Notally is none of these things. It's extremely light, minimalistic and el
### Translations
The list of supported languages is present in [CONTRIBUTORS.md](CONTRIBUTORS.md)
If you would like to help translate the app further, please contact me via [email](mailto:omgodseapps@gmail.com) or open a pull request.
### Screenshots

View file

@ -228,8 +228,8 @@ class BaseNoteModel(private val app: Application) : AndroidViewModel(app) {
}
Type.LIST -> {
append("<ol>")
baseNote.items.forEach {
append("<li>${it.body}</li>")
baseNote.items.forEach { (body) ->
append("<li>${Html.escapeHtml(body)}</li>")
}
append("</ol>")
}