0
OP New Sysop Apr 18, 2026 12:03pm (edited 2x) view history

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

Log in or register to reply to this thread.

We use cookies to enhance your experience on 6502ish.com. Essential cookies keep the site running. Analytics cookies help us understand how the site is used. Cookie Settings | Privacy Policy