Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
add repeater dataSource security note
Browse files Browse the repository at this point in the history
  • Loading branch information
swilliamset committed May 30, 2017
1 parent 06b3873 commit 64ac6f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _includes/js/repeater.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,17 @@ <h3 id="repeater-dataSource">Data Source</h3>
</div><!-- ./fu-table-responsive -->
<p>The default values are <code>{ count: 0, end: 0, items: [], page: 0, pages: 1, start: 0 }</code>.</p>

<div class="fu-callout fu-callout-warning">
<h4 id="repeater-dataSource-security">Security</h4>
<p>
Use the <code>dataSource</code> method to keep your page safe from XSS.
<ul>
<li>Do not include markup in the <code>data</code> object argument passed to <code>dataSource</code>'s <code>callback</code> function.</li>
<li>Use the <code>cleanInput</code> utility while gathering your data use the data is safely encoded.</li>
</ul>
</p>
</div>

<h3 id="repeater-usage-events">Events</h3>
<div class="table-responsive">
<table class="table table-bordered table-striped">
Expand Down

0 comments on commit 64ac6f7

Please sign in to comment.