不要怂,就是干,撸起袖子干!

Commit 9817e589 by Jan Aagaard Meier

Merge pull request #3122 from ackerdev/params-doc-generator-fix

Fix non-global string replace for docs
2 parents b8e3ed59 44d72f29
Showing with 3 additions and 3 deletions
......@@ -144,9 +144,9 @@ Comment.concatTypes = function (types, convertEntities) {
if (convertEntities) {
// Convert a couple of things to their HTML-entities
// The spacing around | is intentional, in order to introduce some linebreaks in the params table
type = type.replace('|', ' | ')
.replace('>', '>')
.replace('<', '&lt;');
type = type.replace(/\|/g, ' &#124; ')
.replace(/>/g, '&gt;')
.replace(/</g, '&lt;');
}
return type;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!