Fix docs gate code highlighting warning

This change marks the code highlighting to none for a
couple instances where there is invalid javascript in
a code block.

This fixes the docs gate failure.

Change-Id: Ib74098c971861604c7990b5786fd99dfc15aeadb
This commit is contained in:
Gage Hugo 2019-04-08 10:29:28 -05:00
parent 625eac77ff
commit 2a72e3cc1f
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ Again, the preferable approach is to only allow known safe attributes,
and sanitize the content of those attribute values. If the content is not
sanitized, the following vulnerable code could occur:
.. code:: javascript
.. code:: none
function add_image(link) {
document.write('<img src="' + link + '"'></img>'');
@ -149,7 +149,7 @@ arbitrary code:
A more secure implementation of the above would be:
.. code:: javascript
.. code:: none
function add_image(link) {
clean = link.replace(/"/g, '&quot;');