v1.18.x
psychobunny 11 years ago
parent b88df6420d
commit bb12ebac48

@ -12,7 +12,7 @@
helpers.buildMetaTag = function(tag) {
var name = tag.name ? 'name="' + tag.name + '" ' : '',
property = tag.property ? 'property="' + tag.property + '" ' : '',
content = tag.content ? 'content="' + tag.content + '" ' : '';
content = tag.content ? 'content="' + tag.content.replace(/\n/g, ' ') + '" ' : '';
return '<meta ' + name + property + content + ' />';
};

@ -82,6 +82,8 @@ topicsController.get = function(req, res, next) {
ogImageUrl = nconf.get('url') + ogImageUrl;
}
description = description.replace(/\n/g, ' ');
res.locals.metaTags = [
{
name: "title",

Loading…
Cancel
Save