Employ a dedicated XML library to write XML files
This commit is contained in:
@ -1,41 +1,44 @@
|
||||
<?PHP
|
||||
|
||||
function transform($transform)
|
||||
{
|
||||
$transform=str_replace(chr(14),"",$transform);
|
||||
$transform=str_replace('"','"',$transform);
|
||||
$transform=str_replace('&','&',$transform);
|
||||
$transform=str_replace('"','"',$transform);
|
||||
$transform=str_replace('</br>',' ',$transform);
|
||||
$transform=str_replace('<br />',' ',$transform);
|
||||
$transform=str_replace('’','\'',$transform);
|
||||
$transform=str_replace(chr(11),' ',$transform);
|
||||
|
||||
$transform=str_replace('<','<',$transform);
|
||||
$transform=str_replace('>','>',$transform);
|
||||
$transform=str_replace('´',''',$transform);
|
||||
$transform=str_replace('&sbquo','\'',$transform);
|
||||
$transform=str_replace('&lsquo','\'',$transform);
|
||||
$transform=str_replace(chr(96),'\'',$transform);
|
||||
$transform=str_replace(chr(130),'\'',$transform);
|
||||
$transform=str_replace(chr(145),'\'',$transform);
|
||||
$transform=str_replace(chr(146),'\'',$transform);
|
||||
$transform = str_replace(chr(14), "", $transform);
|
||||
$transform = str_replace('"', '"', $transform);
|
||||
$transform = str_replace('&', '&', $transform);
|
||||
$transform = str_replace('"', '"', $transform);
|
||||
$transform = str_replace('</br>', ' ', $transform);
|
||||
$transform = str_replace('<br />', ' ', $transform);
|
||||
$transform = str_replace('’', '\'', $transform);
|
||||
$transform = str_replace(chr(11), ' ', $transform);
|
||||
|
||||
$transform = str_replace('<', '<', $transform);
|
||||
$transform = str_replace('>', '>', $transform);
|
||||
$transform = str_replace('´', ''', $transform);
|
||||
$transform = str_replace('&sbquo', '\'', $transform);
|
||||
$transform = str_replace('&lsquo', '\'', $transform);
|
||||
$transform = str_replace(chr(96), '\'', $transform);
|
||||
$transform = str_replace(chr(130), '\'', $transform);
|
||||
$transform = str_replace(chr(145), '\'', $transform);
|
||||
$transform = str_replace(chr(146), '\'', $transform);
|
||||
return $transform;
|
||||
|
||||
}
|
||||
|
||||
function tagify($tagify)
|
||||
{
|
||||
$tagify=str_replace(' ','_',$tagify);
|
||||
$tagify=str_replace('/','_',$tagify);
|
||||
$tagify=str_replace(',','_',$tagify);
|
||||
$tagify=str_replace('__','_',$tagify);
|
||||
$tagify=str_replace('Ä','ae',$tagify);
|
||||
$tagify=str_replace('ä','ae',$tagify);
|
||||
$tagify=str_replace('Ö','oe',$tagify);
|
||||
$tagify=str_replace('ö','oe',$tagify);
|
||||
$tagify=str_replace('Ü','ue',$tagify);
|
||||
$tagify=str_replace('ü','ue',$tagify);
|
||||
$tagify=str_replace('ß','ss',$tagify);
|
||||
$tagify=str_replace(chr(41),'',$tagify);
|
||||
$tagify=str_replace(chr(40),'',$tagify);
|
||||
return $tagify;
|
||||
$tagify = str_replace(' ', '_', $tagify);
|
||||
$tagify = str_replace('/', '_', $tagify);
|
||||
$tagify = str_replace(',', '_', $tagify);
|
||||
$tagify = str_replace('__', '_', $tagify);
|
||||
$tagify = str_replace('Ä', 'ae', $tagify);
|
||||
$tagify = str_replace('ä', 'ae', $tagify);
|
||||
$tagify = str_replace('Ö', 'oe', $tagify);
|
||||
$tagify = str_replace('ö', 'oe', $tagify);
|
||||
$tagify = str_replace('Ü', 'ue', $tagify);
|
||||
$tagify = str_replace('ü', 'ue', $tagify);
|
||||
$tagify = str_replace('ß', 'ss', $tagify);
|
||||
$tagify = str_replace(chr(41), '', $tagify);
|
||||
$tagify = str_replace(chr(40), '', $tagify);
|
||||
return $tagify;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user