| @@ 58-76 (lines=19) @@ | ||
| 55 | '{$certType}' => $certType, |
|
| 56 | '{$rejectReason}' => $rejectReason |
|
| 57 | ); |
|
| 58 | if($html === true) |
|
| 59 | { |
|
| 60 | $text = strtr($this->text, $vars); |
|
| 61 | return $text; |
|
| 62 | } |
|
| 63 | else |
|
| 64 | { |
|
| 65 | $rawText = $this->text; |
|
| 66 | $index = strpos($rawText, "<script"); |
|
| 67 | if($index !== false) |
|
| 68 | { |
|
| 69 | $end = strpos($rawText, "</script>"); |
|
| 70 | if($index === 0) |
|
| 71 | { |
|
| 72 | $rawText = substr($rawText, $end+9); |
|
| 73 | } |
|
| 74 | } |
|
| 75 | return strtr(strip_tags($rawText), $vars); |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | public function getHTMLBody() |
|
| @@ 65-83 (lines=19) @@ | ||
| 62 | $vars['{$newStart}'] = $newStart; |
|
| 63 | $vars['{$newEnd}'] = $newEnd; |
|
| 64 | } |
|
| 65 | if($html === true) |
|
| 66 | { |
|
| 67 | $text = strtr($this->text, $vars); |
|
| 68 | return $text; |
|
| 69 | } |
|
| 70 | else |
|
| 71 | { |
|
| 72 | $rawText = $this->text; |
|
| 73 | $index = strpos($rawText, "<script"); |
|
| 74 | if($index !== false) |
|
| 75 | { |
|
| 76 | $end = strpos($rawText, "</script>"); |
|
| 77 | if($index === 0) |
|
| 78 | { |
|
| 79 | $rawText = substr($rawText, $end+9); |
|
| 80 | } |
|
| 81 | } |
|
| 82 | return strtr(strip_tags($rawText), $vars); |
|
| 83 | } |
|
| 84 | } |
|
| 85 | ||
| 86 | public function getHTMLBody() |
|