rotate4all.com wrote on 29
th Jun, 2021 at 8:46am:
It is pure wysiwyg, but that was not the issue as formatting was being saved properly in each individual news post. The issue was that HTML tags were being stripped from the News summary page when rendered, hence it looked a bit messed up. It was meant to be that way because having any text-formatting on that page looked a bit weird for my taste at least.
Solved it by replacing tags with spaces: strip_tags(str_replace('<', ' <', $str));
Maybe the closing tag '> ' would be a better deal as it prevents prepending the paragraph with a blank space.
Ok, maybe even better we should simply ignore my OCD alerts popping up uninvited..
The space seems to get trimmed at the element rendering level anyways, so it's not a real problem..