From a4479c39761e04dc7668ad1fdc7ccb6818902021 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 6 May 2016 12:48:29 +0100 Subject: [PATCH] Fix - data renderer: Multi-character escaping - Thanks Epo --- dataRender/ellipsis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dataRender/ellipsis.js b/dataRender/ellipsis.js index f73455e..186e9e5 100644 --- a/dataRender/ellipsis.js +++ b/dataRender/ellipsis.js @@ -50,10 +50,10 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) { var esc = function ( t ) { return t - .replace( /&/, '&' ) - .replace( //, '>' ) - .replace( /"/, '"' ); + .replace( /&/g, '&' ) + .replace( //g, '>' ) + .replace( /"/g, '"' ); }; return function ( d, type, row ) {