So i have href iside php tags and inside href i want to always use ROOT_URL:
<?php
<a href="'echo escapeHtml(ROOT_URL . '?view=products');'">Delete</a>
?>
But i get error message: syntax error, unexpected 'echo' (T_ECHO), expecting ';' or ','
How can i still use the href inside php and still use echo to go to link but without issues?