Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81677

TableTools - Copy breaks when encountering a single quote.

$
0
0
When the copy function encounters a single quote, it will stop processing. No Success message is displayed. The text in the clipboard up until the single quote is intact, but everything after that is truncated. It seems that html escaping the single quote (replacing it with &#39;) on the server-side sometimes works but sometimes doesn't. I believe it fails to work if the character entity resides within an HTML tag, such as <span>, but I am not entirely sure of the disparity. I have managed to work around the issue for now by replacing all single quotes with the &rsquo; character entity, which is not exactly the same, but pretty close.

Viewing all articles
Browse latest Browse all 81677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>