r24963 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24962‎ | r24963 | r24964 >
Date:19:45, 20 August 2007
Author:magnusmanske
Status:old
Tags:
Comment:
Patch by Daniel Burckhardt
Modified paths:
  • /trunk/wiki2xml/php/xml2docbook_xml.php (modified) (history)

Diff [purge]

Index: trunk/wiki2xml/php/xml2docbook_xml.php
@@ -44,12 +44,12 @@
4545 }
4646
4747 function fix_text ( $s ) {
48 - $s = html_entity_decode ( $s ) ;
49 - filter_named_entities ( $s ) ;
50 - $s = str_replace ( "&" , "&" , $s ) ;
51 - $s = str_replace ( "<" , "&lt;" , $s ) ;
52 - $s = str_replace ( ">" , "&gt;" , $s ) ;
53 - return utf8_decode ( $s ) ;
 48+ $s = html_entity_decode ( $s , ENT_COMPAT, 'UTF-8') ; // dbu 2007-08-20
 49+ filter_named_entities ( $s ) ;
 50+ $s = str_replace ( "&" , "&amp;" , $s ) ;
 51+ $s = str_replace ( "<" , "&lt;" , $s ) ;
 52+ $s = str_replace ( ">" , "&gt;" , $s ) ;
 53+ return $s; // utf8_decode ( $s ) ; // dbu 2007-08-20
5454 }
5555
5656 function add_temp_text ( &$temp ) {

Status & tagging log