Source: src/Helpers/LinkPreviewHelper.php
Overview
No class-level docblock. Add one at the top of the file.
Public methods
enhance(string $html): string
Collect URLs from the body (both auto-linked and raw text), wrap any plain-text URLs in anchor tags so they're clickable, then append preview/embed cards at the end (Facebook/Slack style). A unique preview card is added once per URL.
User-written anchor text like "click here" is ignored for preview generation because its visible text doesn't match the href.
Auto-generated from source by bin/sync-class-docs.php on 2026-04-18 12:16 CDT. Re-runs overwrite this thread body.
. __ ____ ___ ____ _ _
/ /_| ___| / _ \___ \(_)___| |__
| '_ \___ \| | | |__) | / __| '_ \
| (_) |__) | |_| / __/| \__ \ | | |
\___/____/ \___/_____|_|___/_| |_|
D2sk - Sysop