473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

convert html-string to plain text-string

hi

is there a simple way to convert a html-string to a plain text-string?

thanks
Nedo

Jul 26 '05 #1
4 2337
Nedo,
is there a simple way to convert a html-string to a plain text-string?

In my opinion do you have to explain this more, because a html-string is a
plain text-string?

Cor
Jul 27 '05 #2
ok:
i have a string with this content:
<html>
<head>
....
</head>
<body>
text text text <br> text text <br>
<a href="link">link</a>

</body>
</html>

so what i want is a method to convert the string above in this one:
text text text
text text
link

i hope you understand now

thanks
Nedo

Jul 27 '05 #3
Nedo,

Your HTML sample is absolute not clean what can be in reality as well.
However I understand now that you need a regex or a routine that tells

every word that start after > until the next < is reached?

I am absolute no Regex expert.
I can tell it in a routine however I think that Regex is more in it place.

Maybe this links can help you.

RegexLib
http://www.regexlib.com/Default.aspx

Expresso
http://www.ultrapico.com/Expresso.htm

Otherwise maybe somebody who knows better Regex than me can help you. (That
is almost everybody. I have to go to those websides as well to create this)

I hope it helps something.

Cor


Jul 27 '05 #4

ok, thank you!

Nedo

Jul 28 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: lawrence | last post by:
Validator chokes on my pages now because I started sending an character encoding header of UTF-8 but the page is full of non UTF-8 characters. Anyway quick way to convert them? ...
12
by: kevin bailey | last post by:
this old script was written when register globals was 'on'. now i need to convert it to run on a server with a php 4.3.6 - do i just convert the relevant variables from $posted_variable to...
1
by: Matt | last post by:
I want to use XML to store a document's configurations. And I can convert to different file format by using XSL. For example, convert to HTML, PDF, or RTF. But the contents are all stored in single...
4
by: Dominic | last post by:
Hi guys, In .NET, how can I convert a HTML file to TIFF efficiently? One possible way is that I can first use word automatation to load the HTML up and then print it to TIFF. Is that right?...
1
by: Tony Gambee | last post by:
I have a system that we have had running for many years. We keep our file in 2000 format, but develop in 2003 environment... ussually we use our test computer with 2000 loaded to convert back to...
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
6
by: tombsy | last post by:
Hello Group. I work for a company who is about to embark on a long awaited Office upgrade from Office 97 to Office XP. Office XP comes with Access 2002. I am an accomplished Access developer...
1
by: =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?= | last post by:
I need to be able to take Wikipedia WikiText markup and convert to HTML. Haven't found anything really useful yet. Anyone? Thanks, Peter -- Site: http://www.eggheadcafe.com UnBlog: ...
5
by: Damiano | last post by:
Hello, How could i convert Html page in a PDF file? Is there a free library? Thanks
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.