private function RenderPropertyValue($value) { if (is_array($value)) { $request = $this->request; $response = $this->response; if (isset($value[0]['ns'])) { $value = CDavResource::EncodeHierarchicalProp($value, null, $xmlnsDefs = null, $xmlnsHash = null, $response, $request); } $value = htmlspecialcharsbx(CDav::ToString($value)); } elseif (preg_match('/\\<(D:)?href\\>[^<]+\\<\\/(D:)?href\\>/i', $value)) { $value = preg_replace('/\\<(D:)?href\\>([^<]+)\\<\\/(D:)?href\\>/i', '<\\1href><a href="\\2">\\2</a></\\3href><br />', $value); } else { $value = htmlspecialcharsbx($value); } return $value; }