Skip to content

Commit d6e815e

Browse files
committed
Land rapid7#9490, Fix HTML escaping of Unicode in docs
2 parents c9473f8 + 0a3fe0c commit d6e815e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

data/markdown_doc/default_template.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Module Name
77

8-
<%= Rex::Text.html_encode(items[:mod_fullname]) %>
8+
<%= CGI::escapeHTML(items[:mod_fullname]) %>
99

1010
## Authors
1111

@@ -47,4 +47,4 @@ No options required.
4747

4848
## Basic Usage
4949

50-
<%= normalize_demo_output(items[:mod_demo]) %>
50+
<%= normalize_demo_output(items[:mod_demo]) %>

lib/msf/util/document_generator/normalizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def normalize_description(description)
183183
# @return [String]
184184
def normalize_authors(authors)
185185
if authors.kind_of?(Array)
186-
authors.collect { |a| "* #{Rex::Text.html_encode(a)}" } * "\n"
186+
authors.collect { |a| "* #{CGI::escapeHTML(a)}" } * "\n"
187187
else
188188
authors
189189
end

0 commit comments

Comments
 (0)