We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0dbe9 commit 404c923Copy full SHA for 404c923
lib/plugins/system/meta/HTMLMetaHandler.js
@@ -68,7 +68,7 @@ HTMLMetaHandler.prototype.onopentag = function(name, attributes) {
68
value = value.replace(/(\r\n|\n|\r)/gm, ' ');
69
}
70
71
- if (/^\d+$/.test(value)) { // convert to integer
+ if (/^\d+$/.test(value) && !/(title|description)/i.test(tagName)) { // convert to integer
72
value = parseInt(value, 10);
73
} else if (/^\d+\.\d+$/.test(value)) {
74
value = parseFloat(value);
0 commit comments