خرید بک لینک

Vote count: 0

Code:

<script>
function f(input) {
    retu '<article>' + input + '</article>';
}     
document.write(f('<script>alert(1)</script>')); //alert 1
document.write(f('&lt;script&gt;alert(1)&lt;/script&gt')); // write normal text
</script>

In my idea, <script>alert(1)</script> is the same as &lt;script&gt;alert(1)&lt;/script&gt(the raw vs http entity codes), but it results different result, could any body explain about that?

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 10 خرداد 1395 ساعت: 21:51

صفحه بندی