JSFiddle - React, Tailwind, and code Playground JavaScript var param = "]<img src='/' onerror='alert(1)'>["; $("a[rel=" + param + "]")