Replace javascript:void(0) for href attribute
This commit is contained in:
parent
47d5c521b5
commit
bb724e828b
|
@ -20,3 +20,10 @@
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const jsVoidStr = 'javascript:void(0)';
|
||||||
|
if (randomText.includes(jsVoidStr)){
|
||||||
|
randomText.replace(jsVoidStr, '#!');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue