ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What's the best method to extract article text from HTML documents?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2015/03/30
مستخدم محذوف‎
من قبل مستخدم محذوف‎

Basm Allah Alrahman Alrahim

 

 

Learn How To make Addons or Extensions

 

This video to show you what you can do with Firefox addon , its not just to extract article , but to translate article

 

There are a lot of different things to extract articles like evernote clipper and bookmarklet [ used with WordPress ] ...etc , those addons made by JavaScript or similar codes

 

 

Thank you for this question that help us to search and learn

Ibrahim Saleh
من قبل Ibrahim Saleh , Front End Developer , Souq.com

http://www.quora.com/Whats-the-best-method-to-extract-article-text-from-HTML-documentsThere is some answers here ,,, hope it'll help you.

Muhammad Waqas
من قبل Muhammad Waqas , C#/.Net Developer , Signup solution

A simple, but useful, jQuery method for extracting article text:

  • text() - Sets or returns the text content of selected elements

EXAMPLE:

 

 

Jquery:

 

$(document).ready(function(){

    $("#btn1").click(function(){

        alert("Text: " + $("#test").text());

});

 

HTML:

 

<button id="btn1">Show Text</button>

المزيد من الأسئلة المماثلة