Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[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() {

Tags: invis89, js, livejournal, vvasin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments