← Back to team overview

mahara-contributors team mailing list archive

[Bug 1560780] [NEW] Allow 'button' tags to be valid in clean_html

 

Public bug reported:

If I want to add a string like:

<button type="button" class="btn btn-warning">Warning</button>

To tinymce to display a bootstrap type button it doesn't display as the
clean_html() htmlpurifier strips it out

Can / should we allow <button> to be not  stripped out?

See forum question:
https://mahara.org/interaction/forum/topic.php?id=7550&offset=0&limit=10#post30356

Adding $def->addElement('button', 'Inline', 'Inline', 'Common'); to
clean_html() will allow button to show after saving.

** Affects: mahara
     Importance: Wishlist
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1560780

Title:
  Allow 'button' tags to be valid in clean_html

Status in Mahara:
  New

Bug description:
  If I want to add a string like:

  <button type="button" class="btn btn-warning">Warning</button>

  To tinymce to display a bootstrap type button it doesn't display as
  the clean_html() htmlpurifier strips it out

  Can / should we allow <button> to be not  stripped out?

  See forum question:
  https://mahara.org/interaction/forum/topic.php?id=7550&offset=0&limit=10#post30356

  Adding $def->addElement('button', 'Inline', 'Inline', 'Common'); to
  clean_html() will allow button to show after saving.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1560780/+subscriptions


Follow ups