Hello. I have a site description written in the config.toml
file and divided into several lines. Like this one:
[params]
description = """
This description
is divided into
several lines.
"""
In the layouts/partials/head.html
I need to write that description on the site header.
If I write:
<meta name="description" content="{{ .Site.Params.Description }}" />
The description includes tabs, new lines and return carriages, like so:
<meta name="description" content=" This description
is divided into
several lines." />
Instead, I’d like to remove every tab, new line and carriage return and print it as a one-line string. Like this:
<meta name="description" content="This description is divided into several lines." />
How can I achieve this? Do I have to use regular expressions, or maybe is there anything else I can use?
Thank you and best regards