fix for xss issue
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<td class='code'><label for='{{valueId}}'>{{name}}</label></td>
|
||||
<td class='code'><label for='{{{escape valueId}}}'>{{{sanitize name}}}</label></td>
|
||||
<td>
|
||||
{{#if isBody}}
|
||||
<textarea class='body-textarea' readonly='readonly' name='{{name}}' id='{{valueId}}'>{{default}}</textarea>
|
||||
<textarea class='body-textarea' readonly='readonly' name='{{{sanitize name}}}' id='{{{escape valueId}}}'>{{{sanitize default}}}</textarea>
|
||||
<div class="parameter-content-type" />
|
||||
{{else}}
|
||||
{{#if default}}
|
||||
{{default}}
|
||||
{{{sanitize default}}}
|
||||
{{else}}
|
||||
(empty)
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td class="markdown">{{{description}}}</td>
|
||||
<td>{{{paramType}}}</td>
|
||||
<td class="markdown">{{{sanitize description}}}</td>
|
||||
<td>{{{escape paramType}}}</td>
|
||||
<td><span class="model-signature"></span></td>
|
||||
|
||||
Reference in New Issue
Block a user