Hi monks, I am developing a site in perl/cgi for an e-publishing company where they use a lot of special characters. I get their error reports in input box and store it in xml. But while retrieving it all the special characters change into entities it seems html parses them and i am unable to generate the special characters on page as it is.

Example:
XML: <error>Missed &reg; in line 2</error> <error>Missed <h1> tag in line 8</error> HTML: <textarea>Missed &reg; in line 2,Missed <h1> tag in line 8 </textarea>

I want the same the text as &reg; but not as a symbol ® inside the textarea but it changes into its appropriate entity.

SInce it ia an epublishing company they use hundreds of special characters and its very hard to include escape sequences for each of them

Any help on this! I am searching on google din get any stuff is there any tag or header declaration to show those entities as raw text but not symbols on the page even i am searching pls help me monks


In reply to Special characters in perl/cgi by sharief

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.