Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 268... Línea 268...
268
            $string
268
            $string
269
        );
269
        );
270
    }
270
    }
Línea 271... Línea 271...
271
 
271
 
272
    /**
-
 
273
     * Special Internet Explorer conditional comments should be removed.
-
 
274
     * @param string $string HTML string to process.
-
 
275
     * @return string HTML with conditional comments removed.
-
 
276
     */
-
 
277
    protected static function removeIEConditional($string)
-
 
278
    {
-
 
279
        return preg_replace(
-
 
280
            '#<!--\[if [^>]+\]>.*?<!\[endif\]-->#si', // probably should generalize for all strings
-
 
281
            '',
-
 
282
            $string
-
 
283
        );
-
 
284
    }
-
 
285
 
-
 
286
    /**
272
    /**
287
     * Callback function for escapeCDATA() that does the work.
273
     * Callback function for escapeCDATA() that does the work.
288
     *
274
     *
289
     * @warning Though this is public in order to let the callback happen,
275
     * @warning Though this is public in order to let the callback happen,
290
     *          calling it directly is not recommended.
276
     *          calling it directly is not recommended.
Línea 321... Línea 307...
321
        }
307
        }
Línea 322... Línea 308...
322
 
308
 
323
        // escape CDATA
309
        // escape CDATA
Línea 324... Línea -...
324
        $html = $this->escapeCDATA($html);
-
 
325
 
-
 
326
        $html = $this->removeIEConditional($html);
310
        $html = $this->escapeCDATA($html);
327
 
311
 
328
        // extract body from document if applicable
312
        // extract body from document if applicable
329
        if ($config->get('Core.ConvertDocumentToFragment')) {
313
        if ($config->get('Core.ConvertDocumentToFragment')) {
330
            $e = false;
314
            $e = false;