Lines Matching refs:block
194 protected function renderEmail($block) argument
196 $email = htmlspecialchars($block[1], ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8');
200 protected function renderUrl($block) argument
202 $url = htmlspecialchars($block[1], ENT_COMPAT | ENT_HTML401, 'UTF-8');
203 $decodedUrl = urldecode($block[1]);
204 $secureUrlText = preg_match('//u', $decodedUrl) ? $decodedUrl : $block[1];
218 protected function renderLink($block) argument
220 if (isset($block['refkey'])) {
221 if (($ref = $this->lookupReference($block['refkey'])) !== false) {
222 $block = array_merge($block, $ref);
224 if (strncmp($block['orig'], '[', 1) === 0) {
225 return '[' . $this->renderAbsy($this->parseInline(substr($block['orig'], 1)));
227 return $block['orig'];
230 return '<a href="' . htmlspecialchars($block['url'], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '"'
231 …. (empty($block['title']) ? '' : ' title="' . htmlspecialchars($block['title'], ENT_COMPAT | ENT_H…
232 . '>' . $this->renderAbsy($block['text']) . '</a>';
235 protected function renderImage($block) argument
237 if (isset($block['refkey'])) {
238 if (($ref = $this->lookupReference($block['refkey'])) !== false) {
239 $block = array_merge($block, $ref);
241 if (strncmp($block['orig'], '![', 2) === 0) {
242 return '![' . $this->renderAbsy($this->parseInline(substr($block['orig'], 2)));
244 return $block['orig'];
247 return '<img src="' . htmlspecialchars($block['url'], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '"'
248 …. ' alt="' . htmlspecialchars($block['text'], ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE, 'UTF-8') …
249 …. (empty($block['title']) ? '' : ' title="' . htmlspecialchars($block['title'], ENT_COMPAT | ENT_H…