Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to handle < and > characters in tag values

Status
Not open for further replies.

BTJSWITZER

IS-IT--Management
Jan 3, 2003
15
US
Data being sent contains < > in the value itself

ex:

<title>TEST < TITLE > TEST</title>

The actual value is (the < and > in this case are NOT part of XML):

TEST < TITLE > TEST

I am realy new to this, suggestions?

I cannot remove the values as user's wish to keepp these
characters.
 
You must change them to the general entities, &_lt; and &_gt; (Omit the underscores--they're only there to keep this forum from interpreting the entities and displaying the characters.)

Same goes for ampersand: use &_amp;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top