@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Prado\Web\UI\WebControls; |
| 13 | 13 | use Prado\IO\TTextWriter; |
| 14 | 14 | use Prado\Prado; |
| 15 | -use Prado\TPropertyValue; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * TSafeHtml class |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function getConfig() |
| 50 | 50 | { |
| 51 | - $config = $this->getViewState('Config', null); |
|
| 52 | - return ($config === null) ? \HTMLPurifier_Config::createDefault() : $config; |
|
| 51 | + $config=$this->getViewState('Config', null); |
|
| 52 | + return ($config===null) ? \HTMLPurifier_Config::createDefault() : $config; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function render($writer) |
| 61 | 61 | { |
| 62 | - $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter()); |
|
| 62 | + $htmlWriter=Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter()); |
|
| 63 | 63 | parent::render($htmlWriter); |
| 64 | 64 | $writer->write($this->parseSafeHtml($htmlWriter->flush())); |
| 65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | protected function parseSafeHtml($text) |
| 73 | 73 | { |
| 74 | - $purifier = new \HTMLPurifier($this->getConfig()); |
|
| 74 | + $purifier=new \HTMLPurifier($this->getConfig()); |
|
| 75 | 75 | return $purifier->purify($text); |
| 76 | 76 | } |
| 77 | 77 | } |