Grab html instead of text when parsing directive
This commit is contained in:
parent
e56ce36d9d
commit
e26d522604
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user