diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-19 12:30:36 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-19 12:30:36 +0100 |
| commit | 7a3bb89372385a235522cdd46a9ff0a9fe13080f (patch) | |
| tree | db6947c785bc02c537a9decc05a04119da82d75e /templates | |
| parent | 673ac631795c6706671ef80353cb053917626c6d (diff) | |
| download | stock-7a3bb89372385a235522cdd46a9ff0a9fe13080f.tar.gz stock-7a3bb89372385a235522cdd46a9ff0a9fe13080f.tar.bz2 stock-7a3bb89372385a235522cdd46a9ff0a9fe13080f.zip | |
Parse description data in list_kitlocker rather than escaping raw markup
Add format_guid to query, call parseDataHash() per row in PHP, display
parsed_data|strip_tags|truncate in template.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/list_kitlocker.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/list_kitlocker.tpl b/templates/list_kitlocker.tpl index c7e1c44..ed59f50 100644 --- a/templates/list_kitlocker.tpl +++ b/templates/list_kitlocker.tpl @@ -27,7 +27,7 @@ {else} <a href="{$smarty.const.STOCK_PKG_URL}view_component.php?content_id={$item.content_id}">{$item.title|escape}</a> {/if} - {if $item.data}<br/><small class="text-muted">{$item.data|truncate:120|escape}</small>{/if} + {if $item.parsed_data}<br/><small class="text-muted">{$item.parsed_data|strip_tags|truncate:120}</small>{/if} </td> <td>{if $item.content_type_guid eq 'stockassembly'}{tr}Assembly{/tr}{else}{tr}Component{/tr}{/if}</td> <td>{$item.klid|escape}</td> |
