You are here:  » Embedded HTML in Descriptions

Support Forum



Embedded HTML in Descriptions

Submitted by Stas on Tue, 2008-11-25 21:37 in

Is there a way to display embedded HTML in product descriptions?
Thanks,
-Stas

Submitted by support on Tue, 2008-11-25 21:44

Hi Stas,

By default, HTML is stripped from the description field in order to "clean-up" the import for various reasons, not least of which is because it is not uncommon to find embedded hyperlinks to the merchant's product page that would bypass your affiliate URL!

However it is easy to import the description field "as-is" if you would prefer. In the file includes/admin.php look for the following code beginning at line 161:

    if ($admin_importFeed["field_description"])
    {
      $record[$admin_importFeed["field_description"]] = strip_tags($record[$admin_importFeed["field_description"]]);
      $record[$admin_importFeed["field_description"]] = tapestry_normalise($record[$admin_importFeed["field_description"]],",'\'\.%!");
    }

..and simply comment out or delete this block. The changes will take effect from the next import (per feed).

Cheers,
David.