You are here:  » HTML Code in "description field"

Support Forum



HTML Code in "description field"

Submitted by cebuproducts on Tue, 2009-04-07 02:57 in

Does the description field accept HTML codes? If not, is it possible to do so? Thanks.

Submitted by support on Tue, 2009-04-07 05:06

Hi,

HTML is stripped by default, by the following code beginning at line 163 of includes/admin.php:

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

To enable the description field to be imported "as-is", simply comment out or delete the above lines and HTML will be imported and displayed without restriction.

Cheers,
David.