How to add xss script to lable element [closed]


i have a label element like below which allows user to input a text as a lable and i want to test xss injection by injecting a code into the label.

<label for="dafsjhfjksd"></label> and if i enter "> onclick=alert(1); " it stores as

<label for="dafsjhfjksd">"> onclick=alert(1); "</label>

How to achieve this?