Skip to content

Commit

Permalink
Merge pull request #63 from deecay/strp-html
Browse files Browse the repository at this point in the history
Strip HTML tags from table values
  • Loading branch information
deecay committed Apr 16, 2019
2 parents 6f25f15 + 3807f0b commit 7c72cb0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/pivottables/index.html.erb
Expand Up @@ -206,9 +206,8 @@ function update_url(config){
$(this).html(replaced_text);
});

// Strip HTML tag from filters
$('.pvtCheckContainer p label span').each(function(){
//$('.pvtCheckContainer').children('p').children('label').children('span').each(function(){
// Strip HTML tag from filters and values
$('.pvtVal,.pvtTotal,.pvtGrandTotal,.pvtCheckContainer p label span').each(function(){
var str = $(this).text();
$(this).text(str.replace(/(<([^>]+)>)/ig,""));
});
Expand Down

0 comments on commit 7c72cb0

Please sign in to comment.