1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

Fix line break on home event's card

This commit is contained in:
vincent 2022-02-10 15:07:57 +01:00
parent fb7e76aa4f
commit 8713354d04
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix line break on home events' cards
## v5.3.3 2022 February 08
- Updated german translations

View File

@ -157,6 +157,8 @@ Application.Filters.filter('breakFilter', [function () {
Application.Filters.filter('simpleText', [function () {
return function (text) {
if (text != null) {
// add a line break after specific closing tags
text = text.replace(/(<\/p>|<\/h4>|<\/h5>|<\/h6>|<\/pre>|<\/blockquote>)/g, '\n');
text = text.replace(/<br\s*\/?>/g, '\n');
return text.replace(/<\/?\w+[^>]*>/g, '');
} else {