1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Solving issues with new experimental output parser

This commit is contained in:
SecretR
2013-03-01 16:26:29 +02:00
parent 81f0aa86e5
commit 9c1d799bf9

View File

@@ -2403,18 +2403,18 @@ class e_parser extends e_parse
echo "<h2>Standard v2 Parser</h2>"; echo "<h2>Standard v2 Parser</h2>";
echo "<h3>\$tp->dataFilter()</h3>"; echo "<h3>\$tp->dataFilter()</h3>";
// echo $tp->dataFilter($html); // Remove Comment for a real mess! // echo $this->dataFilter($html); // Remove Comment for a real mess!
$sql->db_Mark_Time('Start Parser Test'); $sql->db_Mark_Time('Start Parser Test');
print_a($this->dataFilter($html)); print_a($this->dataFilter($html));
$sql->db_Mark_Time('tp->dataFilter'); $sql->db_Mark_Time('tp->dataFilter');
echo "<h3>\$tp->toHtml()</h3>"; echo "<h3>\$tp->toHtml()</h3>";
// echo $tp->dataFilter($html); // Remove Comment for a real mess! // echo $this->dataFilter($html); // Remove Comment for a real mess!
print_a($this->tohtml($html)); print_a($this->tohtml($html));
$sql->db_Mark_Time('tp->toHtml'); $sql->db_Mark_Time('tp->toHtml');
echo "<h3>\$tp->toDB()</h3>"; echo "<h3>\$tp->toDB()</h3>";
// echo $tp->dataFilter($html); // Remove Comment for a real mess! // echo $this->dataFilter($html); // Remove Comment for a real mess!
print_a($this->toDB($html)); print_a($this->toDB($html));
$sql->db_Mark_Time('tp->toDB'); $sql->db_Mark_Time('tp->toDB');
@@ -2487,7 +2487,7 @@ class e_parser extends e_parse
$this->removedList['attributes'][] = $name; $this->removedList['attributes'][] = $name;
} }
if(inValidAttributeVal($value)) if($this->inValidAttributeVal($value))
{ {
$node->setAttribute($name, '#---sanitized---#'); $node->setAttribute($name, '#---sanitized---#');
} }