- 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:
+1
-1
@@ -161,7 +161,7 @@ render_head('Videos — TyClifford.com', '
|
||||
<?php foreach ($paged['videos'] as $v):
|
||||
$vslug = $v['slug'];
|
||||
$vtitle = $v['title'];
|
||||
$vdesc = $v['description'];
|
||||
$vdesc = media_description_plain_text($v['description']);
|
||||
$vthumb = $v['thumbnail'];
|
||||
$vdur = (int)$v['duration'];
|
||||
$created = substr($v['created_at'], 0, 10);
|
||||
|
||||
Reference in New Issue
Block a user