rittenhop-dev/versions/5.94.2/core/frontend/helpers/title.js

11 lines
314 B
JavaScript
Raw Normal View History

2024-09-23 19:40:12 -04:00
// # Title Helper
// Usage: `{{title}}`
//
// Overrides the standard behavior of `{[title}}` to ensure the content is correctly escaped
const {SafeString, escapeExpression} = require('../services/handlebars');
module.exports = function title() {
return new SafeString(escapeExpression(this.title || ''));
};