Advertisement

01.28.2008 at 03:21AM PST, ID: 23115955
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

How do I add HTML tags to certain parts of a string?

Asked by seofeed in .Net Editors & IDEs, Microsoft Visual Basic.Net

Tags: , , ,

I'm developing an application in Visual Basic 2005. It is retrieving posts from a WordPress blog. The problem occurs when I retrieve the post content. I'm using the MetaWebLog API to get the post content, but it's not retrieving the <p> tags as it should. It seems to be a problem with Wordpress and not the class library. In the WordPress post editor it shows all HTML tags except for opening and closing <p> tags.

The post content is returned as a string. And there is whitespace in between each paragraph in the string.

For example, here is how it is retrieved:

---Start Example---

We just launched a new FireFox Addon that shows you how many RSS subscribers you have to your Feedburner feed and how many hits are generated daily from your feed.
<p align="center"><img src="http://www.jackhumphrey.com/fridaytrafficreport/wp-content/uploads/2008/01/feedburnersubscribers.JPG" alt="feedburnersubscribers.JPG" /></p>
<strong>It's simple, but solves a pesky problem: </strong> not knowing at a glance what your feed subscriber count is and rarely, unless you log into your Feedburner account, knowing how many hits you generate from your feed daily.

There's just one small problem. Mozilla puts you in a "sandbox" when you submit new add ons and it has to be reviewed by several people before they let it out in the general population where everyone can download and use it.

I will give you a scoop and show you how to get this killer little add on, but you have to do me a favor and review it at Mozilla to help get it out of the sandbox.

Deal?

<strong>Here's what you need to do:</strong>

Go to
<a href="https://addons.mozilla.org/en-US/firefox/">https://addons.mozilla.org/en-US/firefox/</a>

Register from link at upper right
<a href="https://addons.mozilla.org/en-US/firefox/">https://addons.mozilla.org/en-US/firefox/users/register</a>

Login
<a href="https://addons.mozilla.org/en-US/firefox/users/login">https://addons.mozilla.org/en-US/firefox/users/login</a>

Go to â¬SMy Account⬠(upper right)
<a href="https://addons.mozilla.org/en-US/firefox/users/edit">https://addons.mozilla.org/en-US/firefox/users/edit</a>

Check â¬SShow Sandbox⬠in Profile ⬠click â¬SSaveâ¬

Click on â¬SSandbox⬠on upper left

Search for "feedburner" and you'll see the Content Desk "Feedburner Subscribers" add on.

Get the following result page: <a href="https://addons.mozilla.org/en-US/firefox/addon/6369">https://addons.mozilla.org/en-US/firefox/addon/6369</a> (must be logged in to view)

The review link is at the bottom, but use the thing first so you know we're not kidding - it works and all! :)

This is an honor system type of thing. Some will grab it and leave, but I am counting on the general goodness of "the people" and hoping you will take the time to review.

Please don't bother if you are going to just say "nice addon." They won't count that and it won't get published. If you are going to do that, then just take it and run and deal somehow with the immense guilt you feel afterwards. :)

---End Example---

There a few things to note here. You will see the one <p> tag in the post, but that occurs it is in between where the actual <p> tags are supposed to be. Odd right? Anyway, this is what it needs to say:

---2nd Example---

<p>We just launched a new FireFox Addon that shows you how many RSS subscribers you have to your Feedburner feed and how many hits are generated daily from your feed.
<p align="center"><img src="http://www.jackhumphrey.com/fridaytrafficreport/wp-content/uploads/2008/01/feedburnersubscribers.JPG" alt="feedburnersubscribers.JPG" /></p>
<strong>It's simple, but solves a pesky problem: </strong> not knowing at a glance what your feed subscriber count is and rarely, unless you log into your Feedburner account, knowing how many hits you generate from your feed daily.</p>

<p>There's just one small problem. Mozilla puts you in a "sandbox" when you submit new add ons and it has to be reviewed by several people before they let it out in the general population where everyone can download and use it.</p>

<p>I will give you a scoop and show you how to get this killer little add on, but you have to do me a favor and review it at Mozilla to help get it out of the sandbox.</p>

<p>Deal?</p>

<p><strong>Here's what you need to do:</strong></p>

<p>Go to
<a href="https://addons.mozilla.org/en-US/firefox/">https://addons.mozilla.org/en-US/firefox/</a></p>

<p>Register from link at upper right
<a href="https://addons.mozilla.org/en-US/firefox/">https://addons.mozilla.org/en-US/firefox/users/register</a></p>

<p>Login
<a href="https://addons.mozilla.org/en-US/firefox/users/login">https://addons.mozilla.org/en-US/firefox/users/login</a></p>

<p>Go to â¬SMy Account⬠(upper right)
<a href="https://addons.mozilla.org/en-US/firefox/users/edit">https://addons.mozilla.org/en-US/firefox/users/edit</a></p>

<p>Check â¬SShow Sandbox⬠in Profile ⬠click â¬SSaveâ¬</p>

<p>Click on â¬SSandbox⬠on upper left</p>

<p>Search for "feedburner" and you'll see the Content Desk "Feedburner Subscribers" add on.</p>

<p>Get the following result page: <a href="https://addons.mozilla.org/en-US/firefox/addon/6369">https://addons.mozilla.org/en-US/firefox/addon/6369</a> (must be logged in to view)</p>

<p>The review link is at the bottom, but use the thing first so you know we're not kidding - it works and all! :)</p>

<p>This is an honor system type of thing. Some will grab it and leave, but I am counting on the general goodness of "the people" and hoping you will take the time to review.</p>

<p>Please don't bother if you are going to just say "nice addon." They won't count that and it won't get published. If you are going to do that, then just take it and run and deal somehow with the immense guilt you feel afterwards. :)</p>

---End 2nd Example---

Anyway, that's what I'm trying to do. Do you know a way to add opening and closing <p> tags where they need to be? I'm sure it has something to do with recognizing whitespace, but I can't find a solution.

Thanks for your help!
Start Free Trial
[+][-]01.28.2008 at 05:02AM PST, ID: 20758525

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.28.2008 at 12:18PM PST, ID: 20762449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.29.2008 at 09:51AM PST, ID: 20770264

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.30.2008 at 01:05AM PST, ID: 20775630

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 12:32PM PDT, ID: 21248341

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual Basic.Net
Tags: Microsoft, Visual Studio, 2005, Visual Basic .NET
Sign Up Now!
Solution Provided By: seofeed
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628