stripHtml not striping html with other html tags inside

stripHtml not striping html with other html tags inside

majorsk8majorsk8 Posts: 2Questions: 1Answers: 0
edited October 2015 in Free community support

Hello,

I'm using Twitter Bootrap Popover http://getbootstrap.com/javascript/#popovers. Html tags can be used inside the content.

When i use Datatables Buttons, option stripHtml is not enought. It stripes all html tags giving unwanted results.

I changed Buttons for DataTables 1.0.3 line with:

c.stripHtml&&(a=a.replace(/<.*?>/g,""));

to:

c.stripHtml&&(a=a.replace(/"<.?>"/g,"").replace(/<.?>/g,""));

Replies

  • allanallan Posts: 62,316Questions: 1Answers: 10,226 Site admin

    Interesting - so you have markup in the attributes? Your workaround sounds look - let me look into putting that in.

    Allan

This discussion has been closed.