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:
parent
625eac77ff
commit
2a72e3cc1f
|
@ -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, '"');
|
||||
|
|
Loading…
Reference in New Issue