Lines Matching +refs:text +refs:line
50 protected function identifyHtml($line, $lines, $current) argument
52 if ($line[0] !== '<' || isset($line[1]) && $line[1] == ' ') {
56 if (strncmp($line, '<!--', 4) === 0) {
65 $tag = rtrim(substr($line, 1, $gtPos - 1), '/');
67 $tag = rtrim(substr($line, 1, min($gtPos, $spacePos) - 1), '/');
84 $line = $lines[$i];
85 $content[] = $line;
86 if (strpos($line, '-->') !== false) {
97 $line = $lines[$i];
98 $content[] = $line;
99 …$level += substr_count($line, "<$tag") - substr_count($line, "</$tag>") - substr_count($line, "/>"…
124 protected function parseEntity($text) argument
127 if (preg_match('/^&#?[\w\d]+;/', $text, $matches)) {
146 protected function parseInlineHtml($text) argument
148 if (strpos($text, '>') !== false) {
149 if (preg_match('~^</?(\w+\d?)( .*?)?>~s', $text, $matches)) {
152 } elseif (preg_match('~^<!--.*?-->~s', $text, $matches)) {
164 protected function parseGt($text) argument