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

  • SEARCH
  • Home
  • 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 7021229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:25:21+00:00 2026-05-27T23:25:21+00:00

As part of an XML node attribute, I need to pass up HTML characters

  • 0

As part of an XML node attribute, I need to pass up HTML characters as part of an attribute value, such as hello” />. I can’t use CDATA as part of the value of the node, as lots of other systems use this method and I cannot afford to break or rewrite that process, so I’m stuck with this.

I can’t HTML encode the values, as they’re used inside of an email and are subsequently outputted literally as HTML encoded values (<br >hello, for example).

Is there a way to escape HTML (specifically, the < character) and allow me to keep un-encoded HTML inline as an attribute? 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-05-27T23:25:22+00:00Added an answer on May 27, 2026 at 11:25 pm

    The XML characters <>&" must be escaped identical to the HTML entities &lt; and so on. Using XML APIS will receive/store the original character. Other character entities in HTML should be converted to UTF-8. Numeric entities, hex (&#xFC;) and decimal (&#2285;) are simple, but for named entities (&bull;) one needs a Library. (If one wants to achieve completeness.)

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

Sidebar

Related Questions

Here is part of my web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:application-config.xml </param-value> </context-param> application-config.xml uses
I pass a function an xml variable: node . function (node){ //how do I
With my other question: Showing Multiple XML Data Entries With the Same Node Value
I have a reference to a XML node which is part of a bigger
The XML Schema Part 2 specifies that an instance of a datatype that is
Below is part of the XML which I am processing with PHP's XSLTProcessor :
Here is part 1 of our problem (Loading a dynamically generated XML file as
I'm generating some XML documents and when it comes to the address part I
I have requirement of specifying web part connections in onet.xml. So when site is
I'm working with an existing XML document which has a structure (in part) like

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.