mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
5ba8959e83
commit
16f72ba865
1 changed files with 1 additions and 0 deletions
|
@ -192,6 +192,7 @@ coreHelpers = function (ghost) {
|
|||
|
||||
/*jslint regexp:true */
|
||||
excerpt = String(this.html).replace(/<\/?[^>]+>/gi, '');
|
||||
excerpt = excerpt.replace(/(\r\n|\n|\r)+/gm, ' ');
|
||||
/*jslint regexp:false */
|
||||
|
||||
if (!truncateOptions.words && !truncateOptions.characters) {
|
||||
|
|
Loading…
Reference in a new issue