Results 1 to 4 of 4

Thread: Converting plain characters to HTML

  1. #1
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default Converting plain characters to HTML

    I am struggling with some plain character for XML use. I need to convert all the plain character in the their HTML format/code somehow. For example, the & character need to be converted to &.

    Suggestions?

  2. #2
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Look around for an HTMLEncode function in the language you are developing in, if it doesn't have one already.

    Or if you are working with a flat XML file, there are some online HTMLEncode tools that you can use for each of the XML data entities - just search for them on Google.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    I’m developing in VB/ASP
    So almost naturally started using server.HTMLEncode, but strangely it does not replace the plain characters to HTML code in my XML file. However, and this is even a bigger mystery to me, it does solve the errors created by special plain characters.

  4. #4
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    scrap coding in asp, use asp.net and then use xml namespace

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HTML Email Stationery
    By s80wkr in forum HTML/CSS/JavaScript
    Replies: 5
    Last Post: 29th December 2009, 11:27 PM
  2. HTML: Custom Helm Login Form
    By Warren Ashcroft in forum Code Sharing
    Replies: 17
    Last Post: 28th September 2006, 02:33 PM
  3. HTML to PHP
    By JamesU2002 in forum General Technical Support
    Replies: 4
    Last Post: 19th July 2006, 11:44 AM
  4. Replies: 16
    Last Post: 2nd December 2005, 04:09 PM

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
  •