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 ### Background
Although there are many notes apps out there, they're all hideous, glitchy, low quality or all 3 at the same time. 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 ### Translations
The list of supported languages is present in [CONTRIBUTORS.md](CONTRIBUTORS.md) 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. 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 ### Screenshots

View file

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