Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to convert it to HTML string

Posted on 2004-10-24
6
Medium Priority
?
180 Views
Last Modified: 2011-09-20
hi,

that's what is displayed on my page:

<b>Product Brief</b><br>Single-user 8-port with new OSCAR GUI and multi-language support!<br><br><b>Features</b> <br>&bull;&nbsp;&nbsp;Controls up to 128 computers from one console <br>&bull;&nbsp;&nbsp;Multi-Language Support Innovative locking cab

it seems that my <html> tag is not parsed by browser. who can tell me how to convert it to HTML format, rather than this ugly text string

cheers
viola
0
Comment
Question by:viola123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 12396479
Hi viola123,

how odd, is this output produced by php or another server-side language?

Regards,
Zyloch
0
 
LVL 6

Author Comment

by:viola123
ID: 12396512
nice to see your quick reply, zyloch

this product descript is stored in SQL server and i am trying to display it using xslt:
<tr><td><xsl:value-of select="pt_detdesc" /></td></tr>

the value of pt_detdesc in SQL server is:
<b>Product Brief</b><br>Single-user 8-port with new OSCAR GUI and multi-language support!<br><br><b>Features</b> <br>&bull;&nbsp;&nbsp;Controls up to 128 computers from one console <br>&bull;&nbsp;&nbsp;Multi-Language Support Innovative locking cab

as u know, i certainly does not want to display it with these ugly html tag. it is supposed to be shown in html format. i rember there should be a way to convert the text to html.but cannot recall it exactly...

cheers
viola
0
 
LVL 6

Author Comment

by:viola123
ID: 12396516
the dataset used in xslt is implemented using c#

viola
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 36

Accepted Solution

by:
Zyloch earned 200 total points
ID: 12396530
Ah, I see. Try this:

<xsl:value-of select="pt_detdesc" disable-output-escaping="yes" />

Regards...
0
 
LVL 6

Author Comment

by:viola123
ID: 12396551
hi, Zyloch:

that is absolutely nice hint!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! it works!!!!!!!!!

enjoy my points now

cheers
viola
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 12396558
No prob :)

Regards...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question