Commit e3776768 authored by BETTENFELD Vincent's avatar BETTENFELD Vincent

Commented filter.php

parent 968ce373
......@@ -153,8 +153,8 @@ function filter($text, array $options = array())
}
}
/* Looks for link(s) in the argument text and place them in the array named
matches */
// Looks for link(s) in the argument text and place them in the array named
// matches
preg_match_all('/<a href="(.*?)">(.*?)<\/a>/s', $text, $matches);
// ? remove tags opening links in new tab from $text ?
......@@ -168,7 +168,8 @@ function filter($text, array $options = array())
$pieces = explode($CFG->wwwroot . '/mod', $text);
$pieces = $this->filter_iena_add_delimiters($pieces);
//
// Each link is replaced by a button with a relevant name, link and ID
// The corresponding iframe is also inserted
for ($i = 0; $i < count($pieces); $i++) {
$pieces[$i] = ' ' . $pieces[$i];
$ini = strpos($pieces[$i], $this->start);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment