divio / aldryn-newsblog

A combined news/weblog application for Aldryn and django CMS – part of the Essential Addons.
https://marketplace.django-cms.org/en/addons/browse/aldryn-newsblog/
Other
67 stars 118 forks source link

Article template can lead to broken markup on the page #406

Closed vxsx closed 8 years ago

vxsx commented 8 years ago

https://github.com/aldryn/aldryn-newsblog/blob/master/aldryn_newsblog/boilerplates/bootstrap3/templates/aldryn_newsblog/includes/article.html#L34

when bootstrap3 boileplate used (need to check default too) the lead can contain markup, which can be unclosed when is used in the "featured articles" or "latest articles" plugins, and that can affect the page, e.g. an ellipsis in the middle of the tag or unclosed link

changing the filter on that line to truncatewords_html should fix it