Html Code Is Visible To Description

Hi i wanted to add an mp3 player at my products and found this method


/* Xander Smalbil */
// var/.htacces
Order deny,allow
Deny from all

order allow,deny
allow from all


order allow,deny
allow from all

// description.tpl
{* $Id: description.tpl 11191 2010-11-11 11:56:01Z klerik $ *}
{** block-description:description **}
{if $attachments_data}


{foreach from=$attachments_data item="file"}
{if $file.filename|strstr:'.mp3'}
{literal}


{/literal}
{assign var=mp3location value="`$config.http_location`/var/attachments/product/`$_REQUEST.product_id`/`$file.filename`"}

Mp3 sample is unable to load


{literal}

{/literal}
{/if}
{/foreach}

{/if}
{$product.full_description|default:$product.short_description|unescape}




and after replacing the old files and clearing the cache because i didn't see any changes this happened…



Make sure you added your code in the “source code” tab of the description



John

For 4.x CS-Cart versions please use:



{$product.full_description|default:$product.short_description nofilter}




instead of



{$product.full_description|default:$product.short_description|unescape}