How to insert code in forums? [Solved]


#1

in create topic section i suggest to add “insert code” option.
and for security use htmlspecialchars function before save topic in database. Try to use “

” for check.

#2

here is the insert code button

you can also use back ticks like in github or tripe backticks

<html>
 <head></head>
<body>test inside triple back ticks</body>
</html>

#3