Index: trunk/extensions/TemplateInfo/TemplateInfo.hooks.php |
— | — | @@ -47,8 +47,8 @@ |
48 | 48 | $parser->getOutput()->setProperty( 'templateinfo', $input ); |
49 | 49 | // TODO - a hook should be called here, to allow other |
50 | 50 | // XML handlers to parse and display this |
51 | | - $text = "<p>The (unhandled) XML definition for this template is:</p>\n"; |
52 | | - $text .= "<pre>" . htmlspecialchars( $input, ENT_QUOTES ) . "</pre>"; |
| 51 | + $text = Html::element('p', null, "The (unhandled) XML definition for this template is:") . "\n"; |
| 52 | + $text .= Html::element('pre', null, $input); |
53 | 53 | return $text; |
54 | 54 | } |
55 | 55 | |
— | — | @@ -59,8 +59,8 @@ |
60 | 60 | } else { |
61 | 61 | // Store error message in the page_props table |
62 | 62 | $parser->getOutput()->setProperty( 'templateinfo', $error_msg ); |
63 | | - $text = "<p>The (incorrect) XML definition for this template is:</p>\n"; |
64 | | - $text .= "<pre>" . htmlspecialchars( $input, ENT_QUOTES ) . "</pre>"; |
| 63 | + $text = Html::element('p', null, "The (incorrect) XML definition for this template is:") . "\n"; |
| 64 | + $text .= Html::element('pre', null, $input); |
65 | 65 | } |
66 | 66 | |
67 | 67 | // return output |