Exemple #1
0
 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', '&lt;\\1href&gt;<a href="\\2">\\2</a>&lt;/\\3href&gt;<br />', $value);
     } else {
         $value = htmlspecialcharsbx($value);
     }
     return $value;
 }