How to accept programming code input for displaying purposes?

Enettyket

New Member
What is the safest way to accept user inputted programming code in PHP, store it in database and display it back with the HTML pre tag?I currently convert the input to HTML entities, but I somehow think it wouldn't be that easy...Any suggestions?
 
Back
Top