我有以下代码:
<a class='example-image-link' href='images/<?php echo addslashes($elevations);?>' data-lightbox='example-set' title='Click on the right side of the image to move forward.'><?php echo addslashes($elevations);?></a>
在上面的代码中,<a>标签在 php 标签关闭的地方?>关闭。<a>结束的"/>" 标记不会在 "title" 之后关闭,而是在此处关闭:<?php echo addslashes($elevations);?>即在 ? 之后。
可能的原因是什么,我应该如何纠正这个问题?