1
I am developing a kind of budget platform in Wordpress and I am using the system of posts and comments for this, with only a few modifications. One of them is to replace the textarea of the comment form with a table with some inputs, because it will serve better for this system:
Then when the person sends this comment, I inject into the value of the input that sends this information the HTML of a table with the data from that table. The problem I’m having is that the content of this comment is stored in the database without HTML, saving only the content of each tag. The same does not happen when an Administrator is the one who makes the comment:
How an administrator’s comment appears in frontend:
How a user’s comment with another function appears:
I am very beginner in PHP, so probably this is just a very easy configuration to change, but I have no idea how to proceed.