<?php
function sanitize_quotes($string){
return htmlspecialchars($string, ENT_QUOTES);
}
$url = "Chateau d'Ouchy";
$surl = sanitize_quotes($url);
echo "<a title='<a href=\"{$surl}\" >{$surl}</a>'>Anchor Text</a>";
?>
Tags: PHP, HTML, Web, Internet, Tips and Tricks, Troubleshooting, Howto
Internet is vague. It has nothing left to be covered now. However, things get messed up sometimes and I forgot where I used to find the materials I had just searched for some days ago. So, I am now gathering all those into this blog. This is just my bookmark or my scrapbook or anything you wish to say. If you think these are helpful, you can take references, no any rights to be defined here. No styles and no colorful designs, just an area to jot down some scraps and all. Enjoy
No comments:
Post a Comment