lib/jsduck/class_formatter.rb in jsduck-4.5.1 vs lib/jsduck/class_formatter.rb in jsduck-4.6.0

- old
+ new

@@ -1,9 +1,10 @@ require 'jsduck/type_parser' require 'jsduck/logger' require 'jsduck/meta_tag_registry' require 'jsduck/shortener' +require 'jsduck/util/html' module JsDuck # Converts :doc properties of class from markdown to HTML, resolves # @links, and converts type definitions to HTML. @@ -78,10 +79,10 @@ if tp.error == :syntax Logger.warn(:type_syntax, "Incorrect type syntax #{type}", context[:filename], context[:linenr]) else Logger.warn(:type_name, "Unknown type #{type}", context[:filename], context[:linenr]) end - type + Util::HTML.escape(type) end end def format_meta_data(context) result = {}