Skip to content
Snippets Groups Projects
Commit 67aad127 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Escape HTML also when type definition parsing fails.

parent 06c6b185
Branches
Tags
No related merge requests found
......@@ -2,6 +2,7 @@ require 'jsduck/type_parser'
require 'jsduck/logger'
require 'jsduck/meta_tag_registry'
require 'jsduck/shortener'
require 'jsduck/util/html'
module JsDuck
......@@ -80,7 +81,7 @@ module JsDuck
else
Logger.warn(:type_name, "Unknown type #{type}", context[:filename], context[:linenr])
end
type
Util::HTML.escape(type)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment