cwilson1031 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Special characters in type expressions are not escaped properly in HTML output #337

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using Google's closure compiler to compile my JavaScript projects. This 
compiler supports advanced type expressions (See 
https://developers.google.com/closure/compiler/docs/js-for-compiler#types).

So a function returning a list of MyClass objects may look like this:

  /**
   * @return {Array.<MyClass>}
   */
  function foobar() {}

The HTML output of JsDoc only shows the type "{Array.}" becaue the characters 
'<' and '>' are not escaped to &lt; and &gt; properly.

I'm not asking for supporting the advanced type expressions of Google's closure 
compiler (Sure, it would be pretty cool to have a link on the type parameter 
"MyClass") but please implement at least a proper HTML-escaping for the output 
of types.

I'm using jsdoc-toolkit version 2.4.0.

Original issue reported on code.google.com by k@ailis.de on 4 May 2012 at 3:11