summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authormicael.bergeron <micaelbergeron@gmail.com>2017-12-01 14:08:30 -0500
committermicael.bergeron <micaelbergeron@gmail.com>2017-12-07 09:06:59 -0500
commit360b94ceba146935a40b02f39ed3d833eaea134a (patch)
tree37a6c9b9e3424dfc0cb5446ddb17be97bb34f379 /lib/banzai
parent17075a0bdc0c271e9f7a4f25829c0517656d5871 (diff)
downloadgitlab-ce-360b94ceba146935a40b02f39ed3d833eaea134a.tar.gz
adding view and feature specs
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/object_renderer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/banzai/object_renderer.rb b/lib/banzai/object_renderer.rb
index 0bf9a8d66bc..2691be81623 100644
--- a/lib/banzai/object_renderer.rb
+++ b/lib/banzai/object_renderer.rb
@@ -86,6 +86,7 @@ module Banzai
def save_options
return {} unless @redaction_context[:xhtml]
+
{ save_with: Nokogiri::XML::Node::SaveOptions::AS_XHTML }
end
end