From a827f14c383949535f7fa01ddfa5a87c85fac41d Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sun, 26 Jul 2020 03:54:13 -0500 Subject: [Command Tags] Handle representing code blocks for all content types --- app/lib/command_tag/processor.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/lib/command_tag/processor.rb') diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 9e9812bb6..6e740ba98 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -187,6 +187,10 @@ class CommandTag::Processor text end + def html_encode(text) + (@html_entities ||= HTMLEntities.new).encode(text) + end + def var(name) @vars[name].presence || [] end -- cgit