Jump to content

[SOLVED] ' <- ' a weird problem !!


hassank1

Recommended Posts

hii

I am working on a system where users can post topics !

 

so I've remarked that when I use  this expression <-  !! the message is cut !!!

 

ex:

 

"hi

hello <- this is a hello "

 

so the output would be only  :

 

"

hi

hello "

 

any explination ?

 

thx

Link to comment
Share on other sites

what do u mean ??

 

that's my question.. why this is happening ?

 

I am using php .. and what I do is cleaning the html tags and converting nl2br .. then I print it .. but donno y this is happening !

 

if the problem isn't clear I can explain with more details !

 

thx

Link to comment
Share on other sites

You need to pass all posted content through htmlentities(), using ENT_QUOTES as the second parameter, when you output it so that all special characters are converted to HTML entities so that they are not rendered by the browser and display exactly as entered.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.