Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:21:56+00:00 2026-06-10T20:21:56+00:00

I have some HTML encoded within an XML request I get through an AIF

  • 0

I have some HTML encoded within an XML request I get through an AIF web service.

The text I’m getting is of course escaped – I get &lt;br&gt; instead of <br> .

Is there a proper way to decode it? I don’t want to write something for the basic stuff, then deal with bug reports for the next decade, because I forgot an accented character I never knew existed…

The lame part is, that when I feed special HTML/XML characters to XMLTextWriter, it will properly encode them, but if I feed that same XML to XMLTextReader, it will not decode them.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:21:58+00:00Added an answer on June 10, 2026 at 8:21 pm
    static void HtmlDecode(Args _args)
    {
        str input   = '&lt;br&gt;';
        str output  = System.Web.HttpUtility::HtmlDecode(input);
        ;
    
        info(output);
    }
    

    Result: <br>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some HTML which is encoded as XML, for example: html = this
I have a list of html pages which may contain certain encoded characters. Some
I have some html like the following: <div class=control-group> <input type=text data-bind=value: $data.DealCode name=DealCode
I have some html files that I want to convert to text. I have
I have written a application that parses the html code of some web pages.
I have a document that has two content types: text/xml and text/html. I would
I have written a python script to parse an HTML page, get some strings
I have some auto-generated text that includes non-ascii encoded parentheses. For example: <div> Some
I have some html stored in database . I dont know that html stored
I have some Html like: <div id=adiv> <ul> <li data-id=3>Cat</li> <li data-id=4>Dog</li> </ul> </div>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.