public function validateFragment($html)
    {
        $query = http_build_query(array_merge(
            $this->getOptions()->buildOptions(),
            array('fragment' => $html)
        ));

        $context = stream_context_create(array(
            'http' => array(
                'method' => 'POST',
                'header' => "Content-Type: application/x-www-form-urlencoded\r\nUser-Agent: HTMLValidator",
                'content' => $query,
            )
        ));

        $data = $this->sendRequest($this->validatorUri, $context);

        return $this->parseSOAP12Response($data);
    }
public function validateFragment($html)
    {
        $query = http_build_query(array_merge(
            $this->getOptions()->buildOptions(),
            array('fragment' => $html)
        ));

        $context = stream_context_create(array(
            'http' => array(
                'method' => 'POST',
                'header' => "Content-Type: application/x-www-form-urlencoded\r\nUser-Agent: HTMLValidator",
                'content' => $query,
            )
        ));

        $data = $this->sendRequest($this->validatorUri, $context);

        return $this->parseSOAP12Response($data);
    }
public function validateFragment ( $ html ) { $ query = http_build_query ( array_merge ( $ this -> getOptions ( ) -> buildOptions ( ) , array ( 'fragment' => $ html ) ) ) ; $ context = stream_context_create ( array ( 'http' => array ( 'method' => 'POST' , 'header' => "Content-Type: application/x-www-form-urlencoded\r\nUser-Agent: HTMLValidator" , 'content' => $ query , ) ) ) ; $ data = $ this -> sendRequest ( $ this -> validatorUri , $ context ) ; return $ this -> parseSOAP12Response ( $ data ) ; }
Validate an html string

@param string $html full html document fragment

@return Response object HTMLValidator\Response
Validate an html string