I have to append apostrophe with the name as (Album's) and store as it is in the XML file and then i have to display that as
Album's in the page.
i have written as,
<?php
$text = "album's";
echo $dest_name = xmlspecialchars($text);
function xmlspecialchars($text) {
return str_replace(''', ''', htmlspecialchars($text));
}
?>
in xml save as (album\'s)
while fetching the name from the xml it displays as album\'s
Please anyone help to fix this issue.
Thanks
append apostrophe with the text and save it in xml file
Moderator: General Moderators
-
periyasamy
- Forum Newbie
- Posts: 5
- Joined: Fri Jul 09, 2010 12:44 am
-
periyasamy
- Forum Newbie
- Posts: 5
- Joined: Fri Jul 09, 2010 12:44 am
Re: append apostrophe with the text and save it in xml file
it's Working now , thank u