Jump to content

Html To Plain Text


Distortion

Recommended Posts

On my website people should be able to send short messages to eachother, but they shouldn't be able to add links or other things with html.I tried converting the input text with strip_tags(); and nl2br(); but this has the disadvantage that innocent things like <Distortion> get deleted as well.Best would be if I could convert the message when it is send to plain text, because maybe I want to use automatic messages that can contain html. Next best is to simply stop the displayed string from being executed as html.Any ideas how to do this?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...