0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/helpers/title.js

13 lines
355 B
JavaScript
Raw Normal View History

// # Title Helper
// Usage: `{{title}}`
//
// Overrides the standard behaviour of `{[title}}` to ensure the content is correctly escaped
var proxy = require('./proxy'),
SafeString = proxy.SafeString,
escapeExpression = proxy.escapeExpression;
module.exports = function title() {
return new SafeString(escapeExpression(this.title || ''));
};