[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/s9e/text-formatter/src/Plugins/Autolink/ -> Parser.php (summary)

(no description)

File Size: 75 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Parser:: (3 methods):

Class: Parser  - X-Ref

parse($text, array $matches)   X-Ref

linkifyUrl($tagPos, $url)   X-Ref
Linkify given URL at given position

param: integer $tagPos URL's position in the text
param: string  $url    URL
return: void

trimUrl($url)   X-Ref
Remove trailing punctuation from given URL

We remove most ASCII non-letters and Unicode punctuation from the end of the string.
- dashes and underscores, (base64 IDs could end with one)
- equal signs, (because of "foo?bar=")
- trailing slashes,
- closing parentheses. (they are balanced separately)

param: string $url Original URL
return: string      Trimmed URL

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1