Sanitize user input: Difference between revisions

m
Line 35:
<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>-->
In other words I had to "santize" 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.<br>
In practice there was no need to because the generated JavsAcript was already always inside a stript tag.
 
=={{header|Raku}}==
7,806

edits