1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix constant value extraction. Escape HTML in constant values

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-02-23 21:10:42 +00:00
parent 2d0e62faf1
commit 74d704c263
3 changed files with 21 additions and 3 deletions

View file

@ -348,7 +348,7 @@ module Generators
@context.constants.map do |co|
res = {
'name' => co.name,
'value' => co.value
'value' => CGI.escapeHTML(co.value)
}
res['desc'] = markup(co.comment, true) if co.comment && !co.comment.empty?
res