title: How can I edit a URL obtained from RSS
body: <p>I have edited this RSS feed CodePen <a href="http://codepen.io/RobKirby/pen/azwwvM?editors=001" rel="nofollow">http://codepen.io/RobKirby/pen/azwwvM?editors=001</a> to display Wordpress posts <a href="http://tomcandy.com/blogtest/" rel="nofollow">http://tomcandy.com/blogtest/</a> however my RSS feed on wordpress links to images only 150px wide. If I could delete the last 6 characters of the url it would link to the full size image, however I can't understand how to edit the url in js. Within html  gives the url for each entry, but I can't work out how to slice it before using it in the html.</p>
  
  <pre><code>$('#feed').feeds({
                      feeds: {
                          feed1: 'https://tomcandy.wordpress.com/feed/',
  
                      },
                      xml: true,
                      max: 6,                     
                          // Date sorting omitted to simplify code                 
  
                      // // Template used to render each entry 
                              entryTemplate: 
                                                                  '&lt;! if (source == "feed1") { !&gt;' +
    //need url to be 6 characters shorter /  var newurl = mediaGroups[0].contents[3].url;
                                                                      '&lt;a class="feeds-entry feeds-source-&lt;!=source!&gt;" target="_blank" href="&lt;!=link!&gt;" title="&lt;!=title!&gt;" style="background-image:url(&lt;!=mediaGroups[0].contents[3].url!&gt;);" data-date="&lt;!=title!&gt;"&gt;' +
                                              '&lt;div class="label"&gt;&lt;!=title!&gt;&lt;/div&gt;' +
                                                      '&lt;div class="blur" style="background-image:url(&lt;!=mediaGroups[0].contents[3].url!&gt;);"&gt;&lt;/div&gt;' +
                                              '&lt;div class="content"&gt;' +
                                                  '&lt;i class="fa fa-eye"&gt;&lt;/i&gt;' +
                                                  '&lt;p&gt;View on Wordpress&lt;/p&gt;' +
                                              '&lt;/div&gt;' +
                                          '&lt;/a&gt;' +
  
                                      '&lt;! } !&gt;'
  
                  });
  </code></pre>
  
  <p>Another option is to copy all the rss across to my website editing only the urls, but that would be a last resort.
  Thanks =)</p>