nlopess Sun Jan 11 04:48:15 2004 EDT
Modified files: /livedocs livedoc.php Log: fix examples output Index: livedocs/livedoc.php diff -u livedocs/livedoc.php:1.69 livedocs/livedoc.php:1.70 --- livedocs/livedoc.php:1.69 Sun Aug 17 16:04:09 2003 +++ livedocs/livedoc.php Sun Jan 11 04:48:15 2004 @@ -1,4 +1,4 @@ -<?php # $Id: livedoc.php,v 1.69 2003/08/17 20:04:09 ilia Exp $ +<?php # $Id: livedoc.php,v 1.70 2004/01/11 09:48:15 nlopess Exp $ /* Generate an HTML version of a phpdoc/docbook page on the fly */ include './common.php'; @@ -1181,6 +1181,7 @@ $content = '<pre>'.htmlentities($content).'</pre>'; break; default: + $content=htmlspecialchars($content); } return sprintf('<div class="%scode">%s</div>', $node->attributes['role'], $content);