Skip to content

Commit 31cc261

Browse files
author
Heston Hoffman
authored
Merge pull request #1071 from puppetlabs/fix-angle-brackets
Replace angle brackets with HTML unicode
2 parents 1edd589 + a3d81df commit 31cc261

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet_references/puppet

1 file changed

+1
-1
lines changed

lib/puppet_references/puppet/man.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_subcommands
116116
end
117117

118118
def code_wrap(raw_text)
119-
"<pre><code>" + raw_text.gsub('<','').gsub('>','') + "</code></pre>"
119+
"<pre><code>" + raw_text.gsub('<','&lt;').gsub('>','&gt;') + "</code></pre>"
120120
end
121121

122122
def build_manpage(subcommand)

0 commit comments

Comments
 (0)