Skip to content

Commit e4c6e01

Browse files
committed
docs($sceDelegateProvider): fix markdown errors
Closes angular#13360
1 parent fb76d96 commit e4c6e01

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/ng/sce.js

+15-13
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,15 @@ function $SceDelegateProvider() {
144144
* @kind function
145145
*
146146
* @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value
147-
* provided. This must be an array or null. A snapshot of this array is used so further
148-
* changes to the array are ignored.
147+
* provided. This must be an array or null. A snapshot of this array is used so further
148+
* changes to the array are ignored.
149149
*
150-
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
151-
* allowed in this array.
150+
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
151+
* allowed in this array.
152152
*
153-
* Note: **an empty whitelist array will block all URLs**!
153+
* <div class="alert alert-warning">
154+
* **Note:** an empty whitelist array will block all URLs!
155+
* </div>
154156
*
155157
* @return {Array} the currently set whitelist array.
156158
*
@@ -173,17 +175,17 @@ function $SceDelegateProvider() {
173175
* @kind function
174176
*
175177
* @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value
176-
* provided. This must be an array or null. A snapshot of this array is used so further
177-
* changes to the array are ignored.
178+
* provided. This must be an array or null. A snapshot of this array is used so further
179+
* changes to the array are ignored.
178180
*
179-
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
180-
* allowed in this array.
181+
* Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
182+
* allowed in this array.
181183
*
182-
* The typical usage for the blacklist is to **block
183-
* [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
184-
* these would otherwise be trusted but actually return content from the redirected domain.
184+
* The typical usage for the blacklist is to **block
185+
* [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
186+
* these would otherwise be trusted but actually return content from the redirected domain.
185187
*
186-
* Finally, **the blacklist overrides the whitelist** and has the final say.
188+
* Finally, **the blacklist overrides the whitelist** and has the final say.
187189
*
188190
* @return {Array} the currently set blacklist array.
189191
*

0 commit comments

Comments
 (0)