Returns the correct caption for this link. By default, this will use the title of the document being linked to, but this may be substituted in the CMS for a dedicated link caption in the case of selective navs.
if $escaped == true, the title is returned ready escaped for HTML use. If escaped == false, this is returned as an unescaped plaintext string.
$escaped (BOOL) optional - default: true
STRING
$link->getTitle()
<h2><?php echo $link->getTitle() ?></h2> <script type="text/javascript">alert('<?php echo addslashes($link->getTitle(false)) ?>')</script>