PHP Source:
<
!DOCTYPE
html
>
<
html
>
<
body
>
<?php
$str =
"My name is Øyvind Åsane. I'm Norwegian."
;
echo
htmlentities($str, ENT_QUOTES,
"ISO-8859-1"
);
// Will only convert double quotes (not single quotes), and uses the character-set Western European
?>
<
/body
>
<
/html
>
Result:
Privacy Policy