diff --git a/sites/all/modules/unl/includes/common.php b/sites/all/modules/unl/includes/common.php index 8ad8859117fd8256a17fc0f71f2f7008cea96d86..cb1a01ca5c1def37ed8ef38801c86f6ce12ca2bb 100644 --- a/sites/all/modules/unl/includes/common.php +++ b/sites/all/modules/unl/includes/common.php @@ -142,11 +142,11 @@ function unl_tidy($string) { 'tidy-mark' => false, ); - // Prevent Tidy from trying to move <script>,<style>,comments to the head if it is the first thing - if (strtolower(substr(trim($string), 0, 7)) == '<script' || strtolower(substr(trim($string), 0, 6)) == '<style' || substr(trim($string), 0, 4) == '<!--') { + // Add to prevent Tidy from removing script or comment if it is the first thing + if (strtolower(substr(trim($string), 0, 7)) == '<script' || substr(trim($string), 0, 4) == '<!--') { $statement = ''; if (substr(trim($string), 0, 9) !== '<!-- Tidy') { - $statement = "<!-- Tidy: Start field with something other than script , style, or comment to remove this -->\n"; + $statement = "<!-- Tidy: Start field with something other than script or comment to remove this -->\n"; } $string = " " . $statement . $string; } diff --git a/sites/all/modules/unl/includes/unl.admin.inc b/sites/all/modules/unl/includes/unl.admin.inc index 258adb91b26d8be0e2fa419afa1fc4e3ef39bc87..1065e992c8def6e93b8ae2d8d829109a8b32555d 100644 --- a/sites/all/modules/unl/includes/unl.admin.inc +++ b/sites/all/modules/unl/includes/unl.admin.inc @@ -26,7 +26,7 @@ function unl_config($form, &$form_state) { $form['root']['unl_tidy'] = array( '#type' => 'checkbox', '#title' => 'Clean up text area HTML', - '#description' => 'Tidy will be used to process HTML in text areas on the node edit form.', + '#description' => 'Tidy will be used to process HTML in text areas on the node edit form. (This will remove any <style> tags.)', '#default_value' => variable_get('unl_tidy'), ); }