Not a bug Meta Descriptions Contain New Line Characters

Affected version
It seems like meta descriptions are being pulled straight from the thread description without any new line characters being removed etc, which is causing the meta descriptions to look a little weird. Is this intentional or just something that wasn't taken into account?

I've looked into replacing new line characters myself in a template modification but it seems to detect "\n" characters literally, instead of as a new line, so they aren't getting removed as you would expect them to.

You can find an example of this behaviour in the following thread


Chris D

XenForo developer
Staff member
This isn't really invalid nor unexpected. In many applications, the line breaks are probably a net benefit over stripping them for context and legibility.

For example, Slack seems to do a pretty good job of parsing it and rendering it out in the expected way: