Possible to only allow target="_blank" but no other values?
ThiefMaster opened this issue · 3 comments
ThiefMaster commented
Is there a way to allow <a target="_blank" ....>
but no other targets? My usecase is that people sometimes don't know what to use, and if you put target="blank"
or similar, then it'll set the window name and two links with the same wrong target would open in the same new tab/window instead of separate ones.
willkg commented
Can you provide a test case so I know specifically what you're asking about?
ThiefMaster commented
<a href="https://google.com" target="_blank">test</a>
<a href="https://google.com" target="foo">test 2</a>
<a href="https://google.com">test 3</a>
->
<a href="https://google.com" target="_blank">test</a>
<a href="https://google.com">test 2</a>
<a href="https://google.com">test 3</a>