I'm trying to add a little form after each post for a plugin I have to code, but I'm not very familiar with Wordpress. By using add_action with the_content as hook, I was able to add some text to the content.
My trouble is that the whole text stored in the $content variable seemed to be processed somehow. Specifically, there is a br/ added after each of my input fields, which break the layout of my form. I noticed that I don't have this issue if I had my form right before the comment form, for instance. But I don't want to put my form here, I need it to be really just after the post itself, prior to anything related to comments.
Is there a way to disable this text and html formatting, but only for the form I'll be adding to the content ? In case there is no easy way to do so, I've tried finding a hook that would allow me to add something AFTER the content and BEFORE the comments to do so, but had no luck finding one. Is there such a hook ?