- 16 views
Open advpoll.module file
You will find the file in /sites/all/modules/advpoll folder
Remove strip_tags() from line 591
Find the line 591 and replace the snipplet below:
From this:
$form['#id'] = 'advpoll-form-' . $values->nid; for ($i = 0; $i < $count; $i++) { if (!$data->choices[$i]['write_in']) { $options[$data->choices[$i]['choice_id']] = strip_tags($data->choices[$i]['choice']); } }
To this:
$form['#id'] = 'advpoll-form-' . $values->nid; for ($i = 0; $i < $count; $i++) { if (!$data->choices[$i]['write_in']) { $options[$data->choices[$i]['choice_id']] = $data->choices[$i]['choice']; } }
Fixed!
Now AdvPoll module can take HTML markup. Or it simply does not filter it. Beware, making this will:
- Break update cycle of the module, if the module will get update in future, it will break all your Polls
- If you happen to forget to close some tag, it might break html markup of whole website. The strip_tags() function was there for a reason.
It is generally not advised to edit module directly. Better and more "Drupal" way would be creating submodule and alter the form from there. But this is super quick and require zero to none skill.