Closed b-creative closed 3 years ago
I think in both cases spaces and newlines are returned, but they are not visible in an HTML view. convertHtmlToText converts HTML to Text and having spaces and \n in there is by design.
Maybe we need an extra function like removeWhiteSpace (?)
you can use {{replacenewline Description ""}} too btw
When using
<div>{{convertHtmlToText Description}}</div>
in the template, it returns clean text. But when using"detailMetaDescription": "{{convertHtmlToText Description}}"
in the manifest, it returns text including spaces (when replacing HTML elements like<p>
), new lines (when a<br>
is present) and (when present in the description) a non-breaking-space (
).Is there a way to prevent this?
Thanks!