You are here

Webform formatting

As I wrote here:www.drupal.org/…omment-9134347

Webform descriptions can be made to take any tags using:

php -r "print json_encode(array('a', 'em', 'strong', 'code', 'img', 'ul', 'ol', 'li'));"  | drush vset --format=json webform_allowed_tags -
  • The first command generates:
["a","em","strong","code","img","ul","ol","li"]
  • which can be written to the variable and checked with:
drush vset --format=json webform_allowed_tags '["a","em","strong","code","img","ul","ol","li"]'
drush vget webform_allowed_tags  # check value is set
Topic: