public function anchors(HTTPRequest $request)
    {
        $id = (int)$this->getRequest()->param('PageID');
        $anchors = $this->getAnchorsInPage($id);

        return json_encode($anchors);
    }