Open GoogleCodeExporter opened 8 years ago
public static function phpToMarkup($php, $charset = 'utf-8') {
$php = preg_replace_callback(
"/<\?php(.*?)\?>/si",
array('phpQuery', '_phpToMarkupCallback'),
$php
);
return $php;
}
public static function _phpToMarkupCallback($php, $charset = 'utf-8') {
return "<php><!--PHP".htmlspecialchars($php[1], ENT_QUOTES|ENT_NOQUOTES, $charset).' PHP--></php>';
}
This is fixed code for this problem.
Original comment by KBord...@gmail.com
on 6 Jan 2011 at 9:16
ahhh, and replace :
public static function _markupToPHPCallback($m) {
return "<"."?php ".htmlspecialchars_decode($m[1], ENT_QUOTES|ENT_NOQUOTES)." ?".">";
}
Original comment by KBord...@gmail.com
on 6 Jan 2011 at 9:20
Fixed code
http://code.google.com/p/xvweb/source/browse/trunk/%20xvweb/core/libraries/phpQu
ery/phpQuery.php
Original comment by KBord...@gmail.com
on 13 Feb 2011 at 12:02
Original issue reported on code.google.com by
KBord...@gmail.com
on 6 Jan 2011 at 6:00