00001 <?php
00002
00003
00004
00026 function PMA_transformation_global_plain($buffer, $options = array(), $meta = '') {
00027 return htmlspecialchars($buffer);
00028 }
00029
00030 function PMA_transformation_global_html($buffer, $options = array(), $meta = '') {
00031 return $buffer;
00032 }
00033
00034 function PMA_transformation_global_html_replace($buffer, $options = array(), $meta = '') {
00035 if (!isset($options['string'])) {
00036 $options['string'] = '';
00037 }
00038
00039 if (isset($options['regex']) && isset($options['regex_replace'])) {
00040 $buffer = preg_replace('@' . str_replace('@', '\@', $options['regex']) . '@si', $options['regex_replace'], $buffer);
00041 }
00042
00043
00044 $return = str_replace("[__BUFFER__]", $buffer, $options['string']);
00045 return $return;
00046 }
00047
00048 ?>