From e26d522604538bcf28a211a02433359693b644fb Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Wed, 7 Dec 2016 16:03:46 +0100 Subject: [PATCH] Grab html instead of text when parsing directive --- src/parsers/directive.parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers/directive.parser.ts b/src/parsers/directive.parser.ts index 782fd20..21d0fde 100644 --- a/src/parsers/directive.parser.ts +++ b/src/parsers/directive.parser.ts @@ -22,7 +22,7 @@ export class DirectiveParser extends AbstractTemplateParser implements ParserInt .each((i: number, element: CheerioElement) => { const $element = $(element); const attr = $element.attr('translate'); - const text = $element.text().trim(); + const text = $element.html().trim(); if (attr) { results.push(attr);