=== modified file 'texy.admin.inc' --- texy.admin.inc 2008-02-21 16:25:52 +0000 +++ texy.admin.inc 2008-02-21 16:33:11 +0000 @@ -97,6 +97,12 @@ '#collapsed' => FALSE, '#weight' => -9, ); + $form['cssset']['texy_allowed_tags'] = array( + '#type' => 'textfield', + '#title' => t('Allowed tags'), + '#description' => t('Allow following tags to appear in the text. Default value is empty - allow no tags. Specify <all> to allow all tags (not recommended). Use commas as separators.'), + '#default_value' => variable_get('texy_allowed_tags', ''), + ); $form['cssset']['texy_allowed_classes'] = array( '#type' => 'textfield', '#title' => t('Allowed classes'), === modified file 'texy.module' --- texy.module 2008-02-21 16:25:52 +0000 +++ texy.module 2008-02-21 16:56:30 +0000 @@ -154,6 +154,21 @@ // set typographic convention $texy->typographyModule->locale = variable_get('texy_locale', 'en'); + $_allowedtags = variable_get('texy_allowed_tags', ''); + if ($_allowedtags == '') { + // permit all tags + $texy->allowedTags = TRUE; + } else if (empty($_allowedtags)) { + // permit no tags + $texy->allowedTags = FALSE; + } else { + // permit only specified tags - with all attributes + $texy->allowedTags = array(); + foreach (preg_split('/,/', str_replace(' ', '', $_allowedtags)) as $_tag) { + $texy->allowedTags[$_tag] = TRUE; + } + } + $_allowedclasses = variable_get('texy_allowed_classes', ''); if ($_allowedclasses == '') { // permit all classes