Solved

how to convert it to HTML string

Posted on 2004-10-24
166 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
Question by:viola123
    6 Comments
     
    LVL 36

    Expert Comment

    by:Zyloch
    Hi viola123,

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

    Regards,
    Zyloch
    0
     
    LVL 6

    Author Comment

    by:viola123
    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
    the dataset used in xslt is implemented using c#

    viola
    0
     
    LVL 36

    Accepted Solution

    by:
    Ah, I see. Try this:

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

    Regards...
    0
     
    LVL 6

    Author Comment

    by:viola123
    hi, Zyloch:

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

    enjoy my points now

    cheers
    viola
    0
     
    LVL 36

    Expert Comment

    by:Zyloch
    No prob :)

    Regards...
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now