Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed whitespace.
  • Loading branch information
icculus committed Jan 10, 2012
1 parent e185745 commit fcd280c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions feed/index.php
Expand Up @@ -7,13 +7,13 @@
// !!! FIXME: the formal XML writer classes.
$xmlents = array('"','&','&','<','>',' ','¡','¢','£','¤','¥','¦','§','¨','©','ª','«','¬','­','®','¯','°','±','²','³','´','µ','¶','·','¸','¹','º','»','¼','½','¾','¿','À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü','ý','þ','ÿ');
$htmlents = array('"','&','&','<','>',' ','¡','¢','£','¤','¥','¦','§','¨','©','ª','«','¬','­','®','¯','°','±','²','³','´','µ','¶','·','¸','¹','º','»','¼','½','¾','¿','À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü','ý','þ','ÿ');
function xml_entities($str)
{
function xml_entities($str)
{
global $xmlents, $htmlents;
$str = htmlspecialchars($str, ENT_NOQUOTES, 'UTF-8');
$str = str_replace($htmlents, $xmlents, $str);
$str = str_ireplace($htmlents, $xmlents, $str);
return $str;
$str = str_replace($htmlents, $xmlents, $str);
$str = str_ireplace($htmlents, $xmlents, $str);
return $str;
} // xml_entities

function doWrite(&$ok, $io, $str)
Expand Down

0 comments on commit fcd280c

Please sign in to comment.