Sanitize user input: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: sp) |
m (→{{header|Phix}}: grammer) |
||
Line 37: | Line 37: | ||
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">header</span><span style="color: #0000FF;">)</span> <span style="color: #000080;font-style:italic;">-- (make the example runnable)</span> |
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">header</span><span style="color: #0000FF;">)</span> <span style="color: #000080;font-style:italic;">-- (make the example runnable)</span> |
||
<!--</lang>--> |
<!--</lang>--> |
||
In other words I had to "sanitize" a constant in the source code, in this particular case, and I could have gone further and done something similar with all the other tags. |
In other words I had to "sanitize" a constant in the source code, in this particular case, and I could have gone further and done something similar with all the other tags, but in practice there was no need to because the generated JavaScript was already always inside a script tag. |
||
In practice there was no need to because the generated JavaScript was already always inside a script tag. |
|||
=={{header|Raku}}== |
=={{header|Raku}}== |