aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/LinkUtils.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix metadata extract regex (2)ArthurHoaro2020-12-171-2/+4
| | | | | | Reference: https://stackoverflow.com/questions/8055727/negating-a-backreference-in-regular-expressions Fixes #1656
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-091-5/+6
|
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-081-0/+46
|\
| * Feature: support any tag separatorArthurHoaro2020-11-051-0/+46
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Fix an issue truncating extracted metadata contentArthurHoaro2020-11-081-4/+4
|/ | | | Previous regex forced the selection to stop at either the first single or double quote found, regardless of the opening quote. Using '\1', we're sure to wait for the proper quote before stopping the capture.
* Default formatter: add a setting to disable auto-linkificationArthurHoaro2020-11-031-3/+8
| | | | | | | + update documentation + single parameter for both URL and hashtags Fixes #1094
* Merge pull request #1540 from ArthurHoaro/fix/metadata-regexesArthurHoaro2020-10-131-2/+4
|\ | | | | Improve regex to extract HTML metadata (title, description, etc.)
| * Improve regex to extract HTML metadata (title, description, etc.)ArthurHoaro2020-09-031-2/+4
| | | | | | | | | | | | Also added a bunch of tests to cover more use cases. Fixes #1375
* | Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-1/+1
|/ | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-231-106/+0
|
* Slim router: handle add tag routeArthurHoaro2020-07-231-1/+1
|
* Introduce Bookmark object and Service layer to retrieve themArthurHoaro2020-01-171-23/+4
| | | | See https://github.com/shaarli/Shaarli/issues/1307 for details
* Automatically retrieve description for new bookmarksArthurHoaro2019-07-061-4/+81
| | | | | | | | | | | | | | | If the option is enabled, it will try to find a meta tag containing the page description and keywords, just like we do for the page title. It will either look for regular meta tag or OpenGraph ones. The option is disabled by default. Note that keywords meta tags is mostly not used. In `configure` template, the variable associated with this setting is `$retrieve_description`. Fixes #1302
* Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieveArthurHoaro2019-03-021-0/+13
|\ | | | | Do not try to retrieve thumbnails for internal link
| * Do not try to retrieve thumbnails for internal linkArthurHoaro2019-02-241-0/+13
| | | | | | | | Also adds a helper function to determine if a link is a note and apply it across multiple files.
* | Remove the redirector settingArthurHoaro2019-02-091-20/+4
|/ | | | Fixes #1239
* namespacing: move LinkUtils along \Shaarli\Bookmark classesVirtualTam2019-01-121-0/+222
Signed-off-by: VirtualTam <virtualtam@flibidi.net>