Results 1 to 6 of 6

Thread: How to convert HTML to TEXT format ?

  1. #1
    Join Date
    Jul 2009
    Posts
    95

    How to convert HTML to TEXT format ?

    Hi,

    I would like to know if there is a function that receives as input code HTML contains text, and returns as output the text in question.
    If no, are there a simple way to search for a word HTML in knowing that we must remove the name tags? I want a converter to convert HTML to TEXT or if there is a way to convert it?? So please tell me how to convert HTML to TEXT format ? or a good free software for conversion ??

  2. #2
    Join Date
    May 2008
    Posts
    244

    Re: How to convert HTML to TEXT format ?

    MicroBlast Software - The easiest way to convert HTML to text, simple as 1-2-3! HTML to Text is a program to convert HTML to text. This program removes all unwanted HTML code from web pages saved on your PC. It is ideal for websites that you keep and which contain valuable information buried in HTML code. With the HTML to Text Wizard, just press a button and removes the HTML code. Save the new text document and import it into your favorite word processor! Simple installation wizard and include all files.

  3. #3
    Join Date
    Mar 2008
    Posts
    672

    Re: How to convert HTML to TEXT format ?

    You can also use Total HTML Converter. Usage is very simple. We should only select the output format and the rest will pass the application automatically. You can use the batch conversion option (batch) if you have many HTML files to convert. There are three ways to use Total HTML Converter.: One is to run the program, then drag and drop HTML files in it. Another way would be to use the command line and finally you can convert HTML files using Microsoft Office without running Total HTML Converter, just select the file and click the button "Convert To" (convert).

  4. #4
    Join Date
    Mar 2008
    Posts
    335

    Re: How to convert HTML to TEXT format ?

    Converting html to text

    Template to convert html to text

    Example:
    HTML Code:
      <? php
     $ html = "<p> <b style='color=#ff0000'> Text </ b> - text <i> text </ i> </ p>";
     $ search = array ( " '<script[^> ]*?>.*?</ script>' si",
                      " '<[\ / \ !]*?[^<>]*?>' si",
                      " '([\ r \ n]) [\ s ]+'",
                      " '& (quot | # 34);' i",
                      " '& (amp | # 38);' i",
                      " '& (lt | # 60);' i",
                      " '& (gt | # 62);' i",
                      " '& (nbsp | # 160);' i",
                      " '& (iexcl | # 161);' i",
                      " '& (cent | # 162);' i",
                      " '& (pound | # 163);' i",
                      " '& (copy | # 169);' i",
                      "' &#( \ d +); 'e ");'"
    
     $ replace = array ( "",
                       ""
                       "\ \ 1",
                       "\" ",
                       "&",
                       "<"
                       ">"
                       ""
                       chr (161)
                       chr (162)
                       chr (163)
                       chr (169)
                       "chr (\ \ 1)");
    
     $ text = preg_replace ($ search, $ replace, $ html);
     var_dump ($ text);
     ?>
    Result:

    string (16) "Text - text text"

  5. #5
    Join Date
    May 2008
    Posts
    255

    Re: How to convert HTML to TEXT format ?

    HTMLAsText utility converts HTML documents to simple text files, by removing all HTML tags and formatting the text according to your preferences.

    Features
    - HTMLAsText automatically removes all tags and scripts from the document.
    - The remained text is formatted according to the number of characters per line that you select.
    - All HTML entities (e.g.: &, <) are converted into the corresponding ASCII characters.
    - Unordered lists (

  6. #6
    Join Date
    Mar 2008
    Posts
    433

    Re: How to convert HTML to TEXT format ?

    Try Detagger, it is a Windows program that can either convert HTML files into text or HTML code clean. Simply select the classes of expressions, sections of code that must be removed or manipulation of code to perform. The options included are: remove all expressions of police removing the words added by MS Office applications, remove sections SUBJECT INTRODUCTION OBJECT, STYLE or SCRIPT, convert expressions of uppercase to lowercase and replace hyperlinks by their value display. This utility supports drag and drop. After conversion, the result can be viewed in a browser or a text editor (depending on conversion).

Similar Threads

  1. How to convert math text PDF format to Kindle readable format
    By The#Gaelic in forum Portable Devices
    Replies: 7
    Last Post: 23-02-2012, 12:09 PM
  2. Convert pdb to html or pdf format
    By Migueel in forum Windows Software
    Replies: 5
    Last Post: 08-05-2010, 10:49 PM
  3. Convert word document into the html format
    By teena_pansare in forum Windows Software
    Replies: 5
    Last Post: 23-12-2009, 02:15 PM
  4. How to Align text inserted in html table format
    By DarenHawk in forum Software Development
    Replies: 3
    Last Post: 11-08-2009, 09:08 AM
  5. Convert HTML image format
    By Champak in forum Customize Desktop
    Replies: 2
    Last Post: 03-10-2008, 03:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,708,300.75439 seconds with 17 queries