- Descriptions now render Markdown or sanitized HTML via [includes/db.php](/Users/tyemeclifford/Documents/GH/mediaplayer/includes/db.php).
Public player descriptions render formatted HTML on the homepage. Catalogue cards, embed meta tags, and social metadata use safe plain-text excerpts. Add/edit admin pages now use a rich description editor that preserves pasted HTML styling, with a textarea fallback for no-JS. External/YouTube-imported descriptions are sanitized before storage. README now documents Markdown/HTML description support.
This commit is contained in:
@@ -35,7 +35,7 @@ foreach ($player_sources as $player_source) {
|
||||
}
|
||||
|
||||
$meta_title = $video ? $video['title'] . ' — TyClifford.com' : 'Video Player';
|
||||
$meta_description = $video && trim($video['description'] ?? '') !== '' ? trim($video['description']) : 'TyClifford.com media player';
|
||||
$meta_description = $video && trim($video['description'] ?? '') !== '' ? media_description_plain_text($video['description']) : 'TyClifford.com media player';
|
||||
$meta_url = $video
|
||||
? public_absolute_url('embed.php?v=' . rawurlencode($video['slug']))
|
||||
: public_absolute_url('embed.php');
|
||||
|
||||
Reference in New Issue
Block a user