Nate,
Two options....
1) get a better editor....
we're getting rid of typetool very soon.
2) Swith the parser back to the old non XHTML parser
In pnAPI uncomment line 634 and comment out line 632.
-Mark
I show the following code for those lines (surrounding code included). Which lines are to be commented and uncommented? It's not clear to me. Forgive me, but I don't see any existing comments in this code segment.
static $allowedtags = NULL;
if (!isset($allowedtags)) {
$allowedhtml = array();
foreach(pnConfigGetVar('AllowableHTML') as $k=>$v) {
if ($k == '!--') {
if ($v <> 0) {
$allowedhtml[] = "$k.*?--";
}
} else {
switch($v) {
case 0:
break;
case 1:
$allowedhtml[] = "/?$k\s*/?";
break;
case 2:
// intelligent regex to deal with > in parameters, bug #1782
// credits to jln
$allowedhtml[] = "/?\s*$k" . "(\s+[\w:]+\s*=\s*(\"[^\"]*\"|'[^']*'))*" . '\s*/?';
// original version
// $allowedhtml[] = "/?$k(\s+[^>]*)?/?";
break;
edited by: geraldgrogan, Jun 02, 2007 - 06:36 AM