[livejournal] r22847: LJSUP-12990: Add "copy link" to image pa...
Committer: vvasin
LJSUP-12990: Add "copy link" to image page. Provide title.U trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js 2012-09-10 09:05:50 UTC (rev 22846)
+++ trunk/htdocs/js/basic.js 2012-09-10 12:26:38 UTC (rev 22847)
@@ -1441,7 +1441,7 @@
* Encode a string to allow a secure insertion in html code.
*/
encodeHTML: function() {
- return this.replace( /([<>&"])/g, function( m, c ) { return String.encodeEntity( c ) } ); /* fix syntax highlight: " */
+ return this.replace( /([<>&\"\'])/g, function( m, c ) { return String.encodeEntity( c ) } ); /* fix syntax highlight: " */
},
decodeHTML: function() {
