3 Replies - 525 Views - Last Post: 25 June 2013 - 08:28 AM

#1 podooo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 05-July 12

edit html using JS

Posted 25 June 2013 - 08:07 AM

how can i remove the img tag from html like this
<p class="image-container" style="text-align: center;"><a href="http://www.engadget.com/2013/06/25/pebble-android-app-update-google-hangouts/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget"><img alt="Pebble's Android App version 182 brings Google Hangouts notifications" data-src-height="340" data-src-width="620" src="http://www.blogcdn.com/www.engadget.com/media/2013/06/pebble-smartwatch-firmware-2013-06-25-01.jpg" /></a></p> <p>With <a href="http://www.engadget.com/2013/05/15/google-hangouts-app-hands-on/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget">all the work</a> that Google's put into Hangouts lately, it'd be a shame to miss out when you're pinged to join one, no? If you happen to be sporting a <a href="http://www.engadget.com/2013/01/25/pebble-smartwatch-review/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget">Pebble smartwatch</a> that scenario will be less likely, as version 1.8.2 of its Android app has arrived with notifications for the chat service. Though Pebble supports Google Talk notifications (along with call alerts, text messages, calendar reminders and email previews), Mountain view <a href="http://www.engadget.com/2013/05/20/hangouts-upgrade-disables-outbound-google-voice-calls-in-desktop/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget">recently said</a> that Hangouts is the future of Google Voice, which likely motivated the tweak. Apart from the extra wrist nag, the update also brings improved stability and developer enhancements -- to grab it, check the source or Google Play on your Android device.</p>
 <p>Filed under: <a href="http://www.engadget.com/category/wearables/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget" rel="tag">Wearables</a>, <a href="http://www.engadget.com/category/software/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget" rel="tag">Software</a></p>
 <p><strong><a href="http://www.engadget.com/2013/06/25/pebble-android-app-update-google-hangouts/?utm_source=Feed_Classic&amp;utm_medium=feed&amp;utm_campaign=Engadget#comments">Comments</a></strong></p>
 <p><strong>Via:</strong> <a href="http://www.androidpolice.com/2013/06/24/pebble-android-app-updated-to-1-8-2-with-support-for-google-hangouts-notifications/" target="_blank">Android Police</a><!--//--></p>
 <p><strong>Source:</strong> <a href="https://play.google.com/store/apps/details?id=com.getpebble.android" target="_blank">Google Play</a><!--//--></p>



Is This A Good Question/Topic? 0
  • +

Replies To: edit html using JS

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3554
  • View blog
  • Posts: 10,335
  • Joined: 08-June 10

Re: edit html using JS

Posted 25 June 2013 - 08:11 AM

via good ole DOM handling.
// img being a reference to the image element
img.parentNode.removeChild(img);

Was This Post Helpful? 0
  • +
  • -

#3 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9393
  • View blog
  • Posts: 35,273
  • Joined: 12-June 08

Re: edit html using JS

Posted 25 June 2013 - 08:13 AM

What is that? Engadget's front page, or RSS feed?
Was This Post Helpful? 0
  • +
  • -

#4 podooo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 05-July 12

Re: edit html using JS

Posted 25 June 2013 - 08:28 AM

View Postmodi123_1, on 25 June 2013 - 08:13 AM, said:

What is that? Engadget's front page, or RSS feed?

rss feed

View PostDormilich, on 25 June 2013 - 08:11 AM, said:

via good ole DOM handling.
// img being a reference to the image element
img.parentNode.removeChild(img);


i save this content in a var let's say called description
how would i implement this
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1