Menu

#7 HTML brackets are note displayed

SHJS
open
nobody
SHJS (12)
5
2009-11-19
2009-11-19
Anonymous
No

Hello all,
I don't think it's coming from SHJS, but Im' not sure.

My site use PHP/MySQL.

When I want to publish some portions HTML code the brackets are being parsed

This is the source code:
<pre class="sh_php">
$conditional = '&lt...

and this is what I get:
$conditional = '&lt;...
The same!

Why don't it print the opening bracket:
$conditional = '<...

If you have any idea where is the issue, let me know.It's
Have a nice day.
Philippe

Discussion

  • gnombat

    gnombat - 2009-11-19
     
  • Anonymous

    Anonymous - 2009-11-21

    I can see that.
    Even the code you published is not working on my local machine.
    It prints: $conditional = '&lt;html&gt;';
    If i'ts not coming from the script do you have an idea about the origin of this issue?

     
  • gnombat

    gnombat - 2009-11-21

    It sounds like the problem is somewhere in the PHP code. Maybe it is getting escaped by a call to htmlspecialchars() or htmlentities(), or maybe there is an anti-XSS filter somewhere which is escaping it.

     

Log in to post a comment.

MongoDB Logo MongoDB