From 88ee01026be8939a6be0ef979d13f851ba3247e9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste PIN Date: Mon, 13 Jan 2020 18:33:24 +0100 Subject: [PATCH] Add support for #raw Add #raw decorators support for builder --- src/builder.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/builder.coffee b/src/builder.coffee index 5653fde0..74d5c6a8 100644 --- a/src/builder.coffee +++ b/src/builder.coffee @@ -68,7 +68,9 @@ class exports.Builder element = element.raw wrapCDATA child else element = element.txt child - + # Case #raw + else if key is "#raw" + element = element.raw child # Case #3 Array data else if Array.isArray child for own index, entry of child