diff --git a/app/assets/javascripts/sitewide/string_utils.js b/app/assets/javascripts/sitewide/string_utils.js index 44ef3057c..e801152cb 100644 --- a/app/assets/javascripts/sitewide/string_utils.js +++ b/app/assets/javascripts/sitewide/string_utils.js @@ -28,12 +28,12 @@ function truncateLongString( el, chars ) { } if ( html ) { - el.html(html.outerHTML + newText + '...' ); + el.text(html.outerHTML + newText + '...' ); } else { if($.type(el) === 'string'){ return newText + '...'; } else { - el.html(newText + '...' ); + el.text(newText + '...' ); } } } else {