. ** ** UltraHTML 3000 tool layer. Texts are now objects, used by it_html ** **/ class it_q { var $quote; var $value; function __construct($value, $quote = true) { $this->quote = $quote; $this->value = $value; } /** * Return htmlspecialchars(strval($this)) and encode forbidden characters 80-9f if latin1 is output * @return Encoded string value of this object */ function __toString() { $result = strval($this->value); if ($GLOBALS['it_html']->p['charset'] == "iso-8859-1") $result = preg_replace('/[\x80-\x9f]/', ' ', strtr($result, array("\x80" => "EUR", "\x82" => "'", "\x84" => "\"", "\x85" => "...", "\x8a" => "S", "\x8c" => "OE", "\x8e" => "Z", "\x91" => "'", "\x92" => "'", "\x93" => "\"", "\x94" => "\"", "\x96" => "-", "\x97" => "-", "\x9a" => "s", "\x9e" => "z"))); return $this->quote ? htmlspecialchars($result) : $result; } } ?>