bitovi / documentjs

The sophisticated documentation engine
https://documentjs.com/
MIT License
598 stars 381 forks source link

makeTypesString does not escape reserved characters #233

Open rjgotten opened 8 years ago

rjgotten commented 8 years ago

Assume given a closed-over generic type, such as @constructor {Foo.Bar} Foo<Bar>

When said type is used in a signature parameter or return value such as @return {Foo.Bar}

then the <Bar> portion will not be properly escaped as text by the makeTypesString helper and will output an unclosed <Bar> HTML tag instead.