laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

Check for valid HTML on document detail page. #1852

Closed niiroobiro closed 1 week ago

niiroobiro commented 4 weeks ago

When a user deletes content HTML, there are left-over HTML tags. If a source pdf is available, it is not displayed on the page because of this.

longhotsummer commented 2 weeks ago

When saving content_html via the admin interface, we should check if it's stub URL (maybe parse it and check if there is no text) and, if so, set it to None or to blank.