Plugin Directory

Changeset 1822045


Ignore:
Timestamp:
02/14/2018 02:09:14 PM (8 years ago)
Author:
93digital
Message:

Fix issue with &

Location:
animated-typing-effect
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • animated-typing-effect/tags/1.2/README.txt

    r1743936 r1822045  
    33Tags: animated typing effect, typewriter effect, typing effect plugin
    44Requires at least: 3.5
    5 Tested up to: 4.8.2
     5Tested up to: 4.9.4
    66Stable tag: trunk
    77License: GPL v3
  • animated-typing-effect/tags/1.2/assets/js/typed.admin.js

    r1743934 r1822045  
    5757
    5858    $inputs.each( function() {
    59       strings.push( $( this ).val() );
     59      const string = $(this).val().replace('&', '&').replace('&', '&');
     60
     61      strings.push( string );
    6062    });
    6163
     
    9395
    9496        values.forEach( function( v ) {
    95           shortcode += " string" + i + "=\"" + v.replace(/"/g, '"') + "\"";
     97          // Replace & with & otherwise the browser freezes.
     98          v = v.replace(/"/g, '"');
     99          v = v.replace('&', '&'); // in case the user already used &
     100          v = v.replace('&', '&');
     101          shortcode += " string" + i + "=\"" + v + "\"";
    96102
    97103          i++;
  • animated-typing-effect/tags/1.2/assets/js/typed.fe.js

    r1743934 r1822045  
    55      for( var key in this.dataset ) {
    66        if( key.substr( 0, 6 ) == "string" ) {
    7           strings.push( this.dataset[ key ].replace( /"/g, '"' ) );
     7          var v = this.dataset[ key ].replace( /"/g, '"' );
     8          // Replace & with & otherwise the browser freezes.
     9          v = v.replace(/"/g, '"');
     10          v = v.replace('&', '&'); // in case the user already used &
     11          v = v.replace('&', '&');
     12
     13          strings.push( v );
    814        } else {
    915          options[ key ] = parseInt( this.dataset[ key ] );
  • animated-typing-effect/trunk/assets/js/typed.fe.js

    r1743934 r1822045  
    55      for( var key in this.dataset ) {
    66        if( key.substr( 0, 6 ) == "string" ) {
    7           strings.push( this.dataset[ key ].replace( /"/g, '"' ) );
     7          var v = this.dataset[ key ].replace( /"/g, '"' );
     8          // Replace & with & otherwise the browser freezes.
     9          v = v.replace(/"/g, '"');
     10          v = v.replace('&', '&'); // in case the user already used &
     11          v = v.replace('&', '&');
     12
     13          strings.push( v );
    814        } else {
    915          options[ key ] = parseInt( this.dataset[ key ] );
  • animated-typing-effect/trunk/typingeffect.php

    r1818855 r1822045  
    22/**
    33 * Plugin Name: Typing Effect
    4  * Version: 1.4
     4 * Version: 1.3
    55 * Plugin URI: http://93digital.co.uk/
    66 * Description: Animated typing effect plugin, allowing you to generate a shortcode that 'types' out words on your page or post. Based on Typed.js by Matt Boldt.
Note: See TracChangeset for help on using the changeset viewer.