This problem occurred to me, I tried with some examples that I had but it does not work, it's something simple, but in php manuals, and examples that I had I could not get it to work, I need to use the single quotes inside an echo:
<php
echo '<div class="snipcart-details ">
<form action="https://link.com" method="post">
<button class="button w3l-cart" href="javascript:void(0);" onclick="javascript:window.open('https://link.com', '_blank');">Ver</button>
</form>
</div>';