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 "
here is the insert code button
you can also use back ticks like in github or tripe backticks
<body>test inside triple back ticks</body>